vim /etc/httpd/conf/httpd.conf
1.新增監聽的port(端口)
Listen 80 (預設)
Listen 8080
2.新增網站位置
<VirtualHost *:8080>
DocumentRoot "/var/www/html/website"
ServerName localhost
<Directory "/var/www/html/website">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
3.重新啟動apach
service httpd restart
沒有留言:
張貼留言