【发布时间】:2016-11-25 08:19:32
【问题描述】:
我在站点中有一个可用的虚拟主机 (etc/apache2/sites-available/phabricator.conf)
Alias /phabricator/ /var/www/phabricator/phabricator/webroot/
<VirtualHost *:80>`
ServerName test.net
DocumentRoot /var/www/phabricator/phabricator/webroot
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
<Directory "/var/www/phabricator/phabricator/webroot">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log comb
</VirtualHost>
当我输入 url test.net 时,我被重定向到 phabricator 页面
我想添加一个新的虚拟主机指向 playframework 应用程序站点-available/default-ssl 我认为不是一个好文件,但每个地方都是同样的问题:
<VirtualHost *:8080>
ProxyPreserveHost On
ServerName tets.net
ProxyPass /excluded !
ProxyPass /test2 http://127.0.0.1:9000/
ProxyPassReverse /test2 http://127.0.0.1:9000/
</VirtualHost>
但是第二个虚拟主机永远不会工作我有这个错误:无法检索请求的 URL。 在 root 上,我在所有其他 url 上到达 phabricator 没有任何工作
【问题讨论】:
标签: apache playframework-2.0 httpd.conf phabricator