LoginSignup
1
0

More than 5 years have passed since last update.

VoyagerをXAMPP環境でVirtualHostを用いてLAN公開する

Last updated at Posted at 2018-11-30

やりたいこと

社内LANの中に設置したXAMPP環境+VoyagerをVirtualhostを用いて公開したい。

ただ、80番ポートは社内HPの公開に使用しており、それはそのまま生かしたい。

なので8000番ポートをVoyagerに割り当てて公開する。

XAMPPのVirtualHostの設定

1.「httpd.conf」の設定

...\xampp\apache\conf\httpd.conf

#下記の設定を一番下に追記する
Listen 8000

2.「httpd-vhosts.conf」の設定

...\xampp\apache\conf\extra\httpd-vhosts.conf

#下記の設定を一番下に追記する
<VirtualHost *:80>
    DocumentRoot "...\xampp\htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:8000>
    DocumentRoot "...\xampp\htdocs\<Voyagerプロジェクト名>\public"
    ServerName localhost
     <Directory "...\xampp\htdocs\<Voyagerプロジェクト名>\public">
        AllowOverride All
        Options All
        Require all granted
    </Directory>
</VirtualHost>

上記完了後、XAMPPのApacheを再起動

LAN内のPCからは

IPアドレス(例:000.00.000.00):8000/admin

でvoyagerにアクセスできます。

参考リンク

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0