Jump to content

Virtual Host not at intended address


KClaisse

Recommended Posts

Hello!

Right now my server has a total of 2 sub-domains. Forums, and Mail. I wish to add another, called jabber, but I wish for it to be on port 9000.
So far this hasn't worked.

Here is my configuration for the VirtualHosts, with the new vhost appended.

[code]
<VirtualHost *:80>
DocumentRoot /var/www/virtual/forums
ServerName forums.kylesplace.org
ServerAlias forums.kylesplace.org
# Other directives here

<Directory /var/www/virtual/forums>

Options +Includes Indexes FollowSymLinks +ExecCGI   

    AllowOverride None
    Order allow,deny
    Allow from all

</Directory>

</VirtualHost>

<VirtualHost *:80>
DocumentRoot /var/www/virtual/mail
ServerName mail.kylesplace.org
ServerAlias mail.kylesplace.org
# Other directives here

<Directory /var/www/virtual/mail>

Options +Includes Indexes FollowSymLinks +ExecCGI   

    AllowOverride None
    Order allow,deny
    Allow from all

</Directory>

</VirtualHost>
####
#jwchat vhost
Loadmodule jk_module modules/mod_jk.so
JkWorkersFile /etc/httpd/conf/workers2.properties
JkLogFile /etc/httpd/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# serve all java server pages from Tomcat
JkMount /*.jsp ajp13
<VirtualHost *:9000>
DocumentRoot /var/www/virtual/jwchat
ServerName jabber.kylesplace.org
ServerAlias jabber.kylesplace.org
# Other directives here

<Directory /var/www/virtual/jwchat>

Options +Includes Indexes +MultiViews FollowSymLinks +ExecCGI   

    AllowOverride None
    Order allow,deny
    Allow from all

</Directory>

</VirtualHost>
[/code]

Now if you navigate to [url=http://jabber.kylesplace.org:9000]jabber.kylesplace.org:9000[/url] you'l get the corrrect page. But if you navigate to [url=http://www.kylesplace.org:9000]www.kylesplace.org:9000[/url] you'll [b]also[/b] get the correct page. So my question is, how do I stop all subdomains except jabber* from listening on port 9000
Link to comment
https://forums.phpfreaks.com/topic/27010-virtual-host-not-at-intended-address/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.