在Windows机器上,有一个系统在本地wampserver上运行,但是当应用程序在localhost上运行时,URL会另外说明.
虽然我希望URL基于目录结构是这样的:
http://localhost/pro/include/db_report.php
Run Code Online (Sandbox Code Playgroud)
开发人员设法做到了这一点:
http://ap-mispro/pro/include/db_report.php
Run Code Online (Sandbox Code Playgroud)
所以不是localhost,URL说ap-mispro.
这两个URL工作正常.
如何制作第二个URL?我试过看看wampmanager.ini,wampmanager.tpl但也许我不知道该找什么?
我使用的是wamp版本2.5我的Apache是2.4.9 PHP:5.5.12 MySQL:5.6.17
我有这些配置:
在我的 httpd.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Run Code Online (Sandbox Code Playgroud)
在我的 G:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhost.conf
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for …Run Code Online (Sandbox Code Playgroud)