doutong4088 2010-09-07 23:56
浏览 13
已采纳

htaccess有多个命令?

i'm currently trying to do a little upload-feature for some of my clients, so that they can easily upload larger files onto my server. therefore i did a subdomain uploads.mywebsite.com (which links to /uploads)

inside of this /uploads i have an .htaccess file which asks for a userpasswd

AuthType Basic
AuthName "Uploads to mysite"
AuthUserFile /home/.sites/74/site484/web/.htpasswd
Require valid-user

that works fine, however now i want to add another line in this htaccess file.

suPHP_ConfigPath /home/.sites/74/site484/web/stf/uploads/

as soon as i add this i get an INTERNAL SERVER ERROR.

just so you know i want to add this line to link to a custom php.ini file inside of my /uploads folder to ensure max_filesize etc. is set to a higher value.

any ideas what i'm doing wrong? or why i can't add this line to the htaccess file without causing an error?

regards matt

  • 写回答

2条回答 默认 最新

  • dpnzf48660 2010-09-08 00:07
    关注

    Are you sure you're using suExec PHP? If it's just maximum filesize directive, then why not simply put:

    php_value upload_max_filesize 100M

    in your .htaccess?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办
  • ¥15 vue2登录调用后端接口如何实现