所以......我需要专业人士的帮助(那将是你很棒的一群)。
我正在创建一个php网站......它处于开发阶段,但它还没有工作。我在尝试访问该网站时收到此消息:
" 内部服务器错误。服务器遇到内部错误或配置错误,无法完成您的请求。服务器错误日志中可能提供了有关此错误的更多信息。"
这是错误日志中的内容:
" [Tue Aug 05 08:13:11.968355 2014] [core:alert] [pid 1264:tid 140197817698048] [client 206.183.14.57:46764] / home / some directory / public_html / dev / .htaccess :尚未支持多个参数。"
我以前从未创建过HTACCESS文件。我使用online HTACCESS generator来做这个。我不知道它可能有什么问题,也可能没有错,但这里是:
请注意,此网站上会不时有流媒体,这就是为什么我有一些"类型"在那里
#htaccess file
#http://dev.mysite.com
#I really hope this works right.
AuthType Basic
AuthUserFile http://dev.mysite.com/members/index.php
Order deny,allow
Require valid-user
AddType application/x-httpd-php php php4
AddType application/x-httpd-php3 php3
AddType application/x-javascript js
AddType application/x-shockwave-flash swf
AddType application/x-sprite spr sprite
AddType application/xls xls
AddType audio/x-mpeg mp2 mp3
AddType audio/x-ms-wma wma
AddType audio/x-pn-realaudio ram ra rm
AddType audio/x-pn-realaudio-plugin rpm
AddType audio/x-qt-stream stream
AddType audio/x-wav wav
AddType image/gif gif
AddType image/jpeg jpeg jpg jpe
AddType image/png png
AddType image/tiff tiff tif
AddType image/x-ms-bmp bmp
AddType text/css css
AddType text/html htm html
AddType text/xml xml
AddType video/mpeg mpeg mpg mpe
AddType video/quicktime qt mov
AddType video/x-msvideo avi
<Files .htaccess .htpasswd .htuser .htgroups .ini .config >
order allow,deny
deny from all
</Files>
RewriteEngine on # Turn on the rewriting engine
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(dev\.)?mysite.com/.*$ [NC]
RewriteRule \.(gif|jpg|png|mp3|mpg|avi|mov)$ - [F]
RewriteCond %{HTTP_USER_AGENT} Wget [OR]
RewriteCond %{HTTP_USER_AGENT} CherryPickerSE [OR]
RewriteCond %{HTTP_USER_AGENT} CherryPickerElite [OR]
RewriteCond %{HTTP_USER_AGENT} EmailCollector [OR] #DENY EMAIL HARVESTERS
RewriteCond %{HTTP_USER_AGENT} EmailSiphon [OR] #DENY EMAIL HARVESTERS
RewriteCond %{HTTP_USER_AGENT} EmailWolf [OR] #DENY EMAIL HARVESTERS
RewriteCond %{HTTP_USER_AGENT} ExtractorPro #DENY EMAIL HARVESTERS
RewriteRule ^.*$ deny.html [L] #DENY EMAIL HARVESTERS
RewriteRule ^Members/([\w-]+)/([\w-]+)/?$ index.php?username=$1 [NC,L] # Process UserName
ErrorDocument 401 403.html #Authentication Required/Forbidden
ErrorDocument 403 403.html #Authentication Required/Forbidden
ErrorDocument 404 404.html #File Not Found
ErrorDocument 500 500.html #Server Error
DirectoryIndex index.php
有人可以告诉我我做错了什么吗? (除了访问在线发电机?)以及如何解决它?
任何帮助将不胜感激。 -Thanks