Ask Your Question

Two domains pointing to one server with askbot

asked 2012-07-31 05:42:08 -0500

Toms gravatar image

updated 2012-08-02 09:05:57 -0500

Evgeny gravatar image

Strange behaviour on my apache server.

I've configured my apache server and Askbot installation for one domain,

Servername is also for this domain.


If I point to IP of the server with Askbot, I see the domain:

If I point an other domain,, to the same server IP, I get

What could be wrong? ServerName is, so it should not be possible to see

Full Virtual host:

 WSGISocketPrefix /home/mysitedjango/FolderForWSGISocketPrefix
 WSGIPythonEggs /home/mysitedjango/FolderForWSGIPythonEggs
 WSGIPythonHome /usr

<VirtualHost IP:80>
     DocumentRoot /home/mysitedjango

Alias /m/ /home/mysitedjango/askbot/skins/

     Alias /static /home/mysitedjango/static
     Alias /upfiles /home/mysitedjango/askbot/upfiles
     <DirectoryMatch /home/mysitedjango/askbot/skins/([^/]+)/media>
        Order deny,allow
        Allow from all
     <Directory /home/mysitedjango/askbot/upfiles>
   Order deny,allow
        Allow from all

     WSGIDaemonProcess askbot2
     WSGIProcessGroup askbot2
     WSGIScriptAlias / /home/mysitedjango/django.wsgi

     CustomLog /var/log/apache2/askbot_mysite/access_log common
     ErrorLog /var/log/apache2/askbot_mysite/error_log
     LogLevel debug
edit retag flag offensive close merge delete



Do you have another virtualhost for port 80?

bgenevaux gravatar imagebgenevaux ( 2012-07-31 06:20:08 -0500 )edit

Marked offtopic, maybe for possible future cleanup.

Evgeny gravatar imageEvgeny ( 2012-08-02 09:05:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-07-31 08:26:29 -0500

todofixthis gravatar image

updated 2012-07-31 14:49:39 -0500

If you only specify one virtual host, then Apache will use it for every request. Try creating a second one with ServerName and ServerAlias * (make sure you put it AFTER the virtual host block).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-07-31 05:42:08 -0500

Seen: 124 times

Last updated: Jul 31 '12