It all depends, are you behind a router?Quote:
Originally posted here by philman213
My servername would be example.ath.cx:80, and listen 80. I guess that isnt correct..?
Printable View
It all depends, are you behind a router?Quote:
Originally posted here by philman213
My servername would be example.ath.cx:80, and listen 80. I guess that isnt correct..?
The way I always understood it is:Quote:
Originally posted here by philman213
My servername would be example.ath.cx:80, and listen 80. I guess that isnt correct..?
ServerName example.ath.cx
Listen example.ath.cx:80
Ie, anything using servername would have to be able to resolve the name. I am wanting to say because you are tacking on the port to the end of the servername, it is trying to figure out what to bind to and can't because it can't resolve its own name (which is why I am thinking that binding to 0.0.0.0 isn't working).
Whereas with the listen directive, you are actually telling apache how to setup the socket.
I could be wrong, but is my thought on the topic.
EDIT: SickDwarf, you are correct, Apache will bind to *.*.*.*:80 or 0.0.0.0:80 if you don't specify an IP. I usually try to make it as specific as possible to avoid problems down the road, but to each his own, 0.0.0.0 works just fine too :)
Yes Im behind a router. Dont tell me its my router, it isnt.
ServerName example.ath.cx:80
Listen example.ath.cx:80
Doesnt work.
It is... you're telling Apache to listen to your hostname which belongs to your router and it isn't able to create a socket for it....
ServerName 192.168.0.1
or whatever your internal IP is.
soooo...
ServerName 192.168.0.100
Listen ..? 192.168.0.100?
ServerName 192.168.0.100
Listen 80
I'll try to edit the config you posted and reload up here. Gimme a few minutes.
[edit] Uploaded, should work if you're behind a router and your internal IP is 192.168.0.100.
Then I'm guessing it has something to do with your configuration (McAfee possibly or internet security?) if this doesn't solve it... I've set up Apache with and without a router and never had this before... but if you're behind a router, your ServerName is your internal IP..
I still get the same error with:
ServerName 192.168.0.100
Listen 80
Apache hates me :(
By the way that conf doesnt work.
Nope, Ive had All fireware/AV/whatever disabled beforehand.
This is ****ing bullshit. Can anyone help me? I completly disabled all firewall stuff and did a fresh install of apache with Listen 80 and ServerName 192.168.0.1 and it still doesnt work.