First time here? Check out the FAQ!

Revision history  [back]

Two domains pointing to one server with askbot

Strange behaviour on my apache server.

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

Servername is also for this domain.

ServerName mysite.com

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

mysite.com/questions

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

mysite2.com/questions

What could be wrong? ServerName is mysite.com, so it should not be possible to see mysite2.com/questions

Full Virtual host:

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

<VirtualHost IP:80>
     ServerAdmin mysite@mysite.com
     DocumentRoot /home/mysitedjango
     ServerName mysite.com

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
     </DirectoryMatch>
     <Directory /home/mysitedjango/askbot/upfiles>
   Order deny,allow
        Allow from all
     </Directory>

     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
</VirtualHost>

Two domains pointing to one server with askbot

Strange behaviour on my apache server.

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

Servername is also for this domain.

ServerName mysite.com

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

mysite.com/questions

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

mysite2.com/questions

What could be wrong? ServerName is mysite.com, so it should not be possible to see mysite2.com/questions

Full Virtual host:

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

<VirtualHost IP:80>
     ServerAdmin mysite@mysite.com
     DocumentRoot /home/mysitedjango
     ServerName mysite.com

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
     </DirectoryMatch>
     <Directory /home/mysitedjango/askbot/upfiles>
   Order deny,allow
        Allow from all
     </Directory>

     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
</VirtualHost>

Two domains pointing to one server with askbot

Strange behaviour on my apache server.

I've configured my apache server and Askbot installation for one domain, mysite.com.mydomain1.com.

Servername is also for this domain.

ServerName mysite.com
mydomain1.com

If I point mysite.com mydomain1.com to IP of the server with Askbot, I see the domain:

mysite.com/questionsmydomain1.com/questions

If I point an other domain, mysite2.com, mydomain2.com, to the same server IP, I get

mysite2.com/questionsmydomain2.com/questions

What could be wrong? ServerName is mysite.com, mydomain1.com, so it should not be possible to see mysite2.com/questionsmydomain2.com/questions

Full Virtual host:

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

<VirtualHost IP:80>
     ServerAdmin mysite@mysite.com
     DocumentRoot /home/mysitedjango
     ServerName mysite.com

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
     </DirectoryMatch>
     <Directory /home/mysitedjango/askbot/upfiles>
   Order deny,allow
        Allow from all
     </Directory>

     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
</VirtualHost>