Results 1 to 8 of 8
  1. #1
    VirtualHost Help
    MrGecko's Avatar
    Member Since
    Oct 02, 2006
    Posts
    65
    Specs:
    se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
    VirtualHost Help
    My VirtualHost is not working can any one help me heres a link to my settings

  2. #2
    VirtualHost Help
    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
    How is it not working? Is httpd even starting up? When you ask a question you need to give more information then just, 'here is my config file'. Have you tried "apachectl configtest" at the comand line?

    My take on the matter is that you need to change "127.0.0.1:80" to an asterist (*). Maybe not for your real localhost. I can only judge from my own virtual config files.

  3. #3
    VirtualHost Help
    MrGecko's Avatar
    Member Since
    Oct 02, 2006
    Posts
    65
    Specs:
    se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
    Quote Originally Posted by xstep
    How is it not working? Is httpd even starting up? When you ask a question you need to give more information then just, 'here is my config file'. Have you tried "apachectl configtest" at the comand line?

    My take on the matter is that you need to change "127.0.0.1:80" to an asterist (*). Maybe not for your real localhost. I can only judge from my own virtual config files.
    it starts up but i'm un able to get the site on my other computer

  4. #4
    VirtualHost Help

    Member Since
    Jul 10, 2006
    Posts
    7
    Quote Originally Posted by MrGecko
    it starts up but i'm un able to get the site on my other computer
    You won't be able to get to it as 127.0.0.1 on any computer points to itself. So when you put 127.0.0.1 into your other computer it will try to access itself, and therefore will not connect to the remote machine. Change 127.0.0.1 to the ipaddress of the server on which httpd is running.

    Grez..

  5. #5
    TheMonkey
    Guest
    I use: http://patrickgibson.com/utilities/virtualhost/

    It takes the legwork out of playing around with httpd.conf.

  6. #6
    VirtualHost Help
    MrGecko's Avatar
    Member Since
    Oct 02, 2006
    Posts
    65
    Specs:
    se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
    Quote Originally Posted by Grez
    You won't be able to get to it as 127.0.0.1 on any computer points to itself. So when you put 127.0.0.1 into your other computer it will try to access itself, and therefore will not connect to the remote machine. Change 127.0.0.1 to the ipaddress of the server on which httpd is running.

    Grez..
    that dose not work

  7. #7
    VirtualHost Help
    MrGecko's Avatar
    Member Since
    Oct 02, 2006
    Posts
    65
    Specs:
    se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
    Quote Originally Posted by TheMonkey
    I use: http://patrickgibson.com/utilities/virtualhost/

    It takes the legwork out of playing around with httpd.conf.
    i know how to do that with out shell script i use go to in the finder and i type in /etc/httpd
    but it is only local it is not world wide
    i have tryed the host file in /etc but it is onlt local

  8. #8
    VirtualHost Help
    cazabam's Avatar
    Member Since
    Jun 06, 2006
    Posts
    1,153
    Specs:
    MacBook 2.0GHz White, 512MB RAM, 60GB HDD
    I sounds like your problem is related to two things:

    1) Your Apache server is only listening on the loopback interface, and
    2) Your other machine is not configured to look to your Apache server for those hostnames

    The solution to the first is to get it to listen on all interfaces (*:80). The solution to the second is to edit /etc/hosts on the client machine, or use DNS.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •