【发布时间】:2015-06-18 08:38:47
【问题描述】:
<VirtualHost *:80>
ServerAdmin webmaster@xxxx.xxx.com
DocumentRoot /var/www/html/xxxx
ServerName xxxx.xxx.com
ServerAlias xxxx www.xxxx.xxx.com
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L]
<Directory /var/www/html/xxxx/cgi>
Options Indexes FollowSymLinks -MultiViews +ExecCGI
AddHandler cgi-script .py
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
我正在尝试在单个服务器 (RHEL) 中托管两个不同的网站。我在 httpd.conf 中为基于命名的虚拟主机完成了所有必需的配置......从上面的 conf 快照中可以看出。好像我在配置中遗漏了一些东西并且无法弄清楚。
当我尝试访问该页面时....我可以看到该页面,但它会无限期地重新加载。
ssl_error_log 中的错误显示此目录中的 Options ExecCGI 已关闭 error_access_log 中的错误显示“POST /cgi/authenticate.py HTTP/1.1”403 221 ssl_request_log 中的错误显示 TLSv1 DHE-RSA-AES256-SHA "POST /cgi/authenticate.py HTTP/1.1" 221
尝试访问我被重定向到的第二个网站。 我正在使用 IP 地址 xx.xx.xx.xx/path-to-folder/index.html
访问第二个拜托,任何人都可以解决问题,出了什么问题? 提前致谢
【问题讨论】:
标签: apache redhat httpd.conf