我正在使用Ubuntu 15.04和xampp并具有以下配置(我已将默认的htdocs文件夹更改为Projects / www):
/opt/lampp/etc/httpd.conf:
DocumentRoot "/media/username/Projects/www"
<Directory "/media/username/Projects/www">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Require all granted
</Directory>
/opt/lampp/etc/extra/httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "/media/username/Projects/www/"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/media/username/Projects/www/myProject/frontend/web/"
ServerName local-project
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/media/username/Projects/www/myProject/backend/web/"
ServerName admin.local-project
</VirtualHost>
的/ etc /主机:
127.0.0.1 localhost
127.0.1.1 username-desktop
127.0.0.1 local-project
127.0.0.1 admin.local-project
问题:
一切正常,但是当我有一个从前端到后端的链接由于某种原因local-project /被追加到协议之后。例如:
http://local-project/:/admin.local-project?userId=7569
我错的任何想法?