#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    8
    Rep Power
    0

    Setting up a seperate port for the website


    Hi everybody,
    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.

    bye, pk
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    461
    Rep Power
    25
    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.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    8
    Rep Power
    0
    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.

    thanks, pk
  6. #4
  7. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Moved to the Apache Dev' forum. Please check the forum index before posting in future.

    Mark.
    programming language development: www.netytan.com Hula

  8. #5
  9. cave painting, the 1st Opn Src
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2003
    Posts
    532
    Rep Power
    0
    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
    <VirtualHost xxx.xxx.xxx.xxx:7000>
    ServerName [your test domain name here.com]
    DocumentRoot /path/to/your/docs
    #add for other settings like admin, email, cgi path
    #your milage in here will vary


    </VirtualHost>

    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

IMN logo majestic logo threadwatch logo seochat tools logo