March 3rd, 2005, 09:18 PM
Setting up a seperate port for the website
I have a website xyz.com running in apache server on linux and it is active.
I want to set up on another port number say www.xyz.com:7000 on which i will work on the website and test it out. I am running python and psp scripts in the website.
I have no idea abt how to go abt it. Please me to figure it out. Thanks in advance.
March 3rd, 2005, 10:32 PM
first off, this has absolutly nothing to do with python, just because the server runs python doesn't mean it goes in the python section
but since you probably didn't scroll all the way down and see apache development you probbaly thought this would be best
you can do it by setting up virtual hosts in the conf file. Go to apaches web site(look on google for it if you don't know it) and then go the documention of the v. of apache you have. It is a very popular subject and is done very very easly.
March 3rd, 2005, 11:02 PM
thanks for your reply. i will look into setting up virtual hosts . i didnt have any idea where to start this , that is y i posted here, also i didnt notice apache topic.
March 4th, 2005, 08:12 AM
Moved to the Apache Dev' forum. Please check the forum index before posting in future.
March 4th, 2005, 03:53 PM
The answer is YES, you can setup a Virtual Host on port 7000 and use your browser locally to test the site. I do this for my sites.
the syntax is
ServerName [your test domain name here.com]
#add for other settings like admin, email, cgi path
#your milage in here will vary
restart your Apache server...and browse to http://yourtestdomain.com:7000
if you set it up correctly then you should be looking at your test website.
Tweak as needed...
PS: I use the IP for my Vhost blocks, but I've seen documentation that sez you can use * ... see which one works best for you
Curious by Nature,
Linux by Choice
Lawson ERP reference tools: Lawsuss.com