1
这是我第一次尝试设置虚拟主机,但有点迷路。我想设置虚拟名称“tp3.localhost”。使用AMPPS在Mac(Mac OS X Lion 10.70.4)上设置虚拟主机
问题:
我AMMPS网址是本地主机:8585。在主机文件我必须写127.0.0.1 tp3.localhost或127.0.0.1:8585本地主机?
我在httpd-vhosts.conf写的代码如下:
了NameVirtualHost tp3.localhost
<VirtualHost tp3.localhost>
<Directory "/Applications/AMPPS/www">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
Allow from All
</Directory>
ServerName tp3.localhost
ServerAlias localhost:8585 127.0.0.1:8585
ScriptAlias /cgi-bin/ "/Applications/AMPPS/www/cgi-bin/"
DocumentRoot "/Applications/AMPPS/www"
ErrorLog "/Applications/AMPPS/apache/logs/error.err"
CustomLog "/Applications/AMPPS/apache/logs/access.log" combined
</VirtualHost>
AMMPS是甲基苯丙胺的可选择性。