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是甲基苯丙胺的可選擇性。