|
|
Apache 2 doesn't web serve but built-in Apache does!
|
|
|
|
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status:
Offline
|
|
I'm trying to get Apache 2 working on a Mac on my network. I installed it, and it'll load files locally just fine, but when I attempt to access the server on a machine on the same network by IP or domain name, it doesn't work.
If I shut off Apache 2 and start the built-in Apache web server (aka. Personal Web Sharing under the Services tab of the Sharing Preference Pane) I can get the Welcome screen just fine.
So, it must be something in the Apache 2 config file no?
Steve
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Oct 2002
Location: Adelaide, South Australia
Status:
Offline
|
|
Or the options you used to compile it?
I haven't had any problems with Apache2 under both Jaguar and Panther.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status:
Offline
|
|
Originally posted by DVD Plaza:
Or the options you used to compile it?
I haven't had any problems with Apache2 under both Jaguar and Panther.
Didn't have to. I used the precompiled binary package available for OS X from www.serverlogistics.com.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2001
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status:
Offline
|
|
That's what I have and I'm having problems getting it to work.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Jan 2001
Status:
Offline
|
|
opps, didnt see that last post, sorry.
Hmm, well I had some problems at one time, I uninstalled it. And a few months reinstalled and it worked, so I'm not sure.
Sorry
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Jan 2001
Status:
Offline
|
|
Make sure you've killed off all the old apache processes before you start Apache2. Something like:
ps -ax | grep httpd
And if it still isn't working, try starting it at the command line(go to the /Library/Apache2/bin/ folder and do a ./apachectl start). If there is some error and Apache can't start, you'll see what the error is at the command line, whereas you won't from the System Preference thing
|
"You have violated the spelling of the DMCA and will be jailed with the Village People."
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status:
Offline
|
|
Originally posted by crayz:
Make sure you've killed off all the old apache processes before you start Apache2. Something like:
ps -ax | grep httpd
Nahh, this isn't the issue. I can get it to install and work locally just fine. It's when I attempt to access the box via http from any other machine on my network that it doesn't work. If I turn Apache2 off and turn on the built-in web server, I can access it...hence my hunch that something is wrong with the Apache2 config file...but I don't know what.
Steve
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by scip:
Nahh, this isn't the issue. I can get it to install and work locally just fine. It's when I attempt to access the box via http from any other machine on my network that it doesn't work. If I turn Apache2 off and turn on the built-in web server, I can access it...hence my hunch that something is wrong with the Apache2 config file...but I don't know what.
Steve
Sounds like maybe you're listening on the loopback (lo0) but not on the ethernet port (en0). I'm not sure how you configure that in apache, but if there is a place to choose what IP you listen on, put in your real IP, not localhost or 127.0.0.1.
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status:
Offline
|
|
Are you getting anything at all when you hit it from other computers? Are you using IP address or named? I am thinking that this might be a virtual host issue...
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status:
Offline
|
|
Originally posted by larkost:
Are you getting anything at all when you hit it from other computers? Are you using IP address or named? I am thinking that this might be a virtual host issue...
Nothing whether I use the IP or name of the machine. I haven't configured any virtual hosts. Built-in Apache works fine.
My understanding is that a default install *should* load over the network (by IP at least) if it loads on the localhost, which verifies the Apache service is running...no?
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status:
Offline
|
|
When you say "nothing"... do you mean that the other clients get a time-out? And just to be pendantic, for testing locally, you are typing "http://localhost" into a browser and getting pages, yes?
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Mar 2001
Location: Brookfield, CT, USA
Status:
Offline
|
|
Originally posted by larkost:
When you say "nothing"... do you mean that the other clients get a time-out? And just to be pendantic, for testing locally, you are typing "http://localhost" into a browser and getting pages, yes?
Yes, other clients get a timeout.
Yes, while testing locally, if I type localhost into the web browser address field, it loads as it should.
Further, if I turn on the built-in web server in OS X, I can access it just fine by typing either the IP or domain name I've given the server. I'm beginning to wonder why I should be running Apache2 afterall...since the built-in one seems to work just fine.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|