0

Im trying to setup the virtualhost in my apache server and its not working as expected.

First, it all works fine if I try localhost..but when I try www.test.com it does take me to the actual website..How do I register my changes?

WSGIPythonPath /var/www/html/apache-virtual-env/lib/python2.7/site-packages
<VirtualHost *:80>
        ServerName test.com
        ServerAlias www.test.com
        WSGIScriptAlias / /var/www/html/Deployment/wsgi.py
        <Directory /var/www/html/>
        #Options Indexes FollowSymLinks Includes ExecCGI
        #AllowOverride All
        Order deny,allow
        Allow from all
        </Directory>
</VirtualHost>
3
  • What is the platform? windows? Linux? Guess test.com is not registered by yoy. Commented Feb 19, 2014 at 22:40
  • Its on Linux..Yes, test.com is not registered ...Where should I make the change... Commented Feb 19, 2014 at 22:43
  • @userX - test.com is registered. But just edit /etc/hosts as described below for testing Commented Feb 19, 2014 at 22:46

1 Answer 1

1

try to change your hosts file and add www.test.com as local,edit the file with root permission

$ sudo nano /etc/hosts

127.0.0.1    www.test.com
127.0.0.1    test.com

i hope it is helpfull

Sign up to request clarification or add additional context in comments.

1 Comment

Can do it on one line. i.e. 127.0.0.1 www.test.com test.com

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.