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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.