1820879 Members
4954 Online
109628 Solutions
New Discussion юеВ

Apache httpd.conf

 
John Ramsay_2
Regular Advisor

Apache httpd.conf

Could someone show me a configured httpd.conf file?
I'm having trouble knowing where to put the web pages and allowing access. When I go to another machine on my intranet and type the IP and port 80 I get a "Forbidden" page but it does identify the srever as running. Could someone help?
4 REPLIES 4
Mic V.
Esteemed Contributor

Re: Apache httpd.conf

Mic V.
Esteemed Contributor

Re: Apache httpd.conf

I'm sure someone can give a better answer, but this is Saturday, so I'll jump in.

Basically, in your httpd.conf, you have a DocumentRoot line. That's where your web pages (including index.html) go. There's also a Port line in httpd.conf; that tells what port to use. If you have "Port 1080", you cannot use http ... myserver:80 -- you must use http ... myserver:1080.

Answering from memory; I think I'm correct, but I know there are a lot of possible permutations to this.

It would be easiest to debug if you posted your httpd.conf, but if this server is ever going to be visible from the Internet, it's not a good idea without a lot of "hiding" of information. (It's the idea of why give someone the outline of the key to your house so they can forge a key.)

Mic
What kind of a name is 'Wolverine'?
Steven E. Protter
Exalted Contributor

Re: Apache httpd.conf

I'm attaching mine for reference. Nothing special in there, but its production.

This is Apache 2.0.48, let me know if you need a 1.3 file, I have that too.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
R. Allan Hicks
Trusted Contributor

Re: Apache httpd.conf

Note, that if you start your apache server via a user other than root, I'm told you can't get to the low port number like 80
"Only he who attempts the absurd is capable of achieving the impossible