Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I configured my system to be able to deploy Django stuff using Apache on my machine(Ubuntu 11.10).I followed the instructions given at http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/ .Everything went fine.I was able to run the url's i had created using Django on http://wsgi.helloserver and also on "http://hello.djangoserver" . Now i wish that i be able to run the same from another machine(Windows Vista) over LAN.I configured the IP's as after running ifconfig Ubuntu 192.168.1.2 and Windows 192.168.1.3 Using my Windows machine i am able to ping Ubuntu and vice versa.Also i am able to access Ubuntu's localhost using Windows.i.e trying.php lying in apache's home can be executed from Windows by hitting "http://192.168.1.2/trying.php" However now how do i get "http://hello.djangoserver" to work from my Windows machine. Had to submit URL's because i wasn't allowed to post more than 2 urls

Edit: In my urls.py i was looking for "^hello/$" which would invoke view corresponding to that,in my case hello.So on my local machine "http://hello.djangoserver/hello" works fine. Now here's what i want to do.On my other machine(Windows) which i connect via LAN cable i want to be able to run "http://hello.djangoserver/hello" or 192.168.1.2/hello which currently don't work.So will Shane's answer http://serverfault.com/a/340154/103875 work?And if so how? Thanks

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

The alteration of the /etc/hosts file in that document is what allowed that fake hostname to function correctly. For that to work from the Windows system, you'd need to modify its hosts file, too; it's located at C:\windows\system32\drivers\etc\hosts.

share|improve this answer
    
Worked great!Thanks!If some one bounces on this thread it may be useful for them to know that to edit C:\...\etc\hosts admin priveleges are required.So opening notepad with admin priveleges and then editing this file did the trick –  Nipun Batra Dec 13 '11 at 13:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.