VirtualHost Help

Joined
Oct 2, 2006
Messages
65
Reaction score
0
Points
6
Your Mac's Specs
se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
My VirtualHost is not working can any one help me heres a link to my settings
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's 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.
 
OP
MrGecko
Joined
Oct 2, 2006
Messages
65
Reaction score
0
Points
6
Your Mac's Specs
se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
xstep said:
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
 
Joined
Jul 10, 2006
Messages
7
Reaction score
0
Points
1
MrGecko said:
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..
 
OP
MrGecko
Joined
Oct 2, 2006
Messages
65
Reaction score
0
Points
6
Your Mac's Specs
se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
Grez said:
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
 
OP
MrGecko
Joined
Oct 2, 2006
Messages
65
Reaction score
0
Points
6
Your Mac's Specs
se30 16MHZ 1.44MBHD Performa 630 CD 33MHZ 250MBHD iMac G3 333MHZ 60GBHD iMac G4 800MHZ 250GBHD
Joined
Jun 6, 2006
Messages
1,153
Reaction score
94
Points
48
Your Mac's 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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top