0

Fedora 18 ボックスの仮想ホスティングに問題があります。

http://127.0.0.1 works correctly and brings up index.html

http://127.0.0.1:9000 also works correctly.

http://localhost works 

http://localhost:9000 does NOT work.  

It just redirects to http://localhost

localhost と 127.0.0.1 を同じように扱えないのはなぜですか?

これが私の httpd-vhosts.conf の内容です:

前もって感謝します。

Listen 9000


  DirectoryIndex index.html welcome.html

NameVirtualHost *:80
NameVirtualHost *:9000

<VirtualHost *:80>
  ServerName saraslights
  ServerAdmin ratteri@gmail.com
  ServerAlias saraslights
  DocumentRoot "/var/www/html/opencart"
  ErrorLog "logs/saraslights-errors.log"
  CustomLog "logs/saraslights-access.log" common
</VirtualHost>


<VirtualHost *:9000>
  ServerName wordpress
  ServerAdmin ratteri@gmail.com
  ServerAlias wordpress
  DocumentRoot /var/www/html/wordpress
  ErrorLog "logs/wordpress-errors.log"
  CustomLog "logs/wordpress-access.log" common
</VirtualHost>
4

0 に答える 0