国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Apache > 正文

Apache 配置多端口 多虛擬主機 局域網訪問示例

2024-08-27 18:23:17
字體:
來源:轉載
供稿:網友
這篇文章主要介紹了Apache如何配置多端口 多虛擬主機 局域網訪問,需要的朋友可以參考下 一、在/wamp/bin/apache/Apache2.4.4/conf/extra/httpd-vhosts.conf 修改如下
復制代碼 代碼如下:
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "E:/website/pxsj"
ServerName host7.com
ServerAlias 192.168.1.116
<Directory "E:/website/pxsj">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

NameVirtualHost *:8080

<VirtualHost *:8080>
DocumentRoot "E:/website/whsj"
ServerName host10.com:8080
ServerAlias 192.168.1.116:8080
<Directory "E:/website/whsj">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

二、/wamp/bin/apache/Apache2.4.4/conf/httpd.conf 修改如下:

在該文件中查找“Listen”一詞修改
復制代碼 代碼如下:
Listen 80
Listen 8080

# Virtual hosts
# Include conf/extra/httpd-vhosts.conf去掉前面的#,這樣就開啟了httpd-vhosts虛擬主機文件。這時候重啟環境

三、C:/Windows/System32/drivers/etc/hosts 修改配置
復制代碼 代碼如下:
<pre code_snippet_id="331423" snippet_file_name="blog_20140507_1_9705788"></pre>
<pre></pre>
<pre></pre>
<pre></pre>
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 乾安县| 黔西县| 河北区| 道真| 石台县| 乐昌市| 太仓市| 论坛| 泰兴市| 吉安县| 两当县| 西乡县| 乌拉特中旗| 无为县| 桦甸市| 伊通| 临洮县| 永嘉县| 志丹县| 无棣县| 湘西| 淮北市| 丁青县| 新安县| 阳信县| 和平县| 泸定县| 益阳市| 平远县| 稷山县| 内丘县| 五家渠市| 称多县| 筠连县| 商河县| 保定市| 阳高县| 齐齐哈尔市| 梨树县| 剑川县| 南丰县|