0
80以外のポートの場合にxampp linuxの仮想ホストを設定する方法。ポート5000の仮想ホストを設定したいとします。私がやる?私はDebian Squeeze 6.04を使用しています。xampp linuxの仮想ホストを80以外のポートに設定する(Debian 6.0.4)
NameVirtualHost *:5000
<VirtualHost *:5000>
ServerAdmin [email protected]
DocumentRoot /opt/lampp/htdocs
ServerName localhost
ServerAlias www.dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<VirtualHost *:5000>
ServerAdmin [email protected]
DocumentRoot /opt/lampp/htdocs/joomla
ServerName sitename
ErrorLog logs/dummy-host2.example.com-error_log
CustomLog logs/dummy-host2.example.com-access_log common
</VirtualHost>
と
私は127.0.0.1 localhost
127.0.0.1 sitename
を持って
gedit /etc/hosts
私は、httpd.conf
でコメントを解除した仮想ホストのエントリを持っている。しかし、それが機能していません。これは正しい方法ですか、何かが欠けていますか?
XAMPPでもですか? –
私の答えを編集します – haltabush
私はhttpd.confを編集して、必要な変更を行いました。つまり、聞きます:8008ですが、動作しません。どうすれば動作させることができますか? – Anoop