Linux web server on 1 port works but others dont

Discussion in 'Software' started by eaterofpies, 7 Jun 2003.

  1. eaterofpies

    eaterofpies What's a Dremel?

    Joined:
    12 Feb 2002
    Posts:
    1,745
    Likes Received:
    0
    finally got apache php and mysql up and running today (mission and a half that was) and thought it would be a great idea to set up a bunch of virtualhosts under apache like this
    port 80 main http server
    port 90 test server
    port 100 phpmyadmin

    the one on port 80 works but the ones one 90 and 100 dont and if i try to telnet to them i get connection refused

    the installation is pretty much the same as the slackware install guide in these forums with the zlib and glibc libraries included and then apache php and mysql installed on top

    sorry for being a complete noob ;)
     
  2. dakar

    dakar What's a Dremel?

    Joined:
    6 Mar 2002
    Posts:
    460
    Likes Received:
    0
    Okay, there are a couple of suggestions here... one the easiest way to setup virtual hosts by domain name...
    either add the A records to your dns zone or easier yet since its just for testing add them to your HOSTS file /etc/HOSTS for linux and i think /windows/system32/HOSTS for winders <-- could be wrong. But in any case this way your browser will actually send the http request to the server by ip and also sent the host name that are looking for. Add them all to your existing server on port 80 and point each virtualhost to a separate directory. pretty easy stuff really.

    or

    Another option, (one that i use for testing different builds on a production server) is to run a separate instance of Apache on a different port say 81, start each new daemon calling for a different http.conf file set to listen on port 81. This way if i break it, the only that instance of Apache blows up...the rest continue to zip along. Using different log files to analize later.
     
  3. eaterofpies

    eaterofpies What's a Dremel?

    Joined:
    12 Feb 2002
    Posts:
    1,745
    Likes Received:
    0
    ill try running multiple servers but i dont know how well it will work as the machine only has 32 meg of ram in it . . . got to wait for the glue in the case to dry 1st tho

    cheers
     
Tags:

Share This Page