2016-12-06 6 views
0

私はポート8080で2つの仮想ホストを処理するApacheサーバーを持っています.1つはプライベート(localhost)で、もう1つはパブリック(インターネット)です。プライベート仮想ホストは正常に動作しますが、パブリックリクエストはすべてのパブリックリクエストをローカルホストにリダイレクトし続けます。私は何が間違っているのか分かりません。助けてください!Apache 2.4でWAMPを使用してパブリック仮想ホストを追加する方法

# Virtual Hosts 

<VirtualHost *:8080> 
ServerName localhost 
DocumentRoot c:/wamp64/www 
<Directory "c:/wamp64/www/"> 
    Options +Indexes +Includes +FollowSymLinks +MultiViews 
    AllowOverride All 
    Require local 
</Directory> 
</VirtualHost> 

<VirtualHost *:8080> 
ServerName mydomain.com 
DocumentRoot c:/wamp64/www/App 
<Directory "c:/wamp64/www/App/"> 
    Options +Indexes +Includes +FollowSymLinks +MultiViews 
    AllowOverride All 
    Require all granted 
</Directory> 
DirectoryIndex index.html index.php 
</VirtualHost> 
# 

また、これは、Windows Server 2012上のWAMP/Magentoのを実行し、Azureの中でホストされている。以下はhttpd-vhost.confファイルです。どうもありがとう!

答えて

0

私は、仮想ホストが正しく構成されていたことが判明し、再方向付けの問題がlocalhost:8080に指していたMySQLのMagentoのDB、にありました。 core_config_dataweb/unsecure/base_urlweb/secure/base_urlの下で私のパブリックドメインに変更しました。正常に動作しました。他の誰かが同様の問題を抱えている場合に備えて、この回答を投稿しました。ありがとうございました

関連する問題