PDA

View Full Version : Apache Question


naxos
09-15-2003, 10:05 PM
Hey, i just installed Apache2 on my main system..now i just cant figure out where to put the html files? Im sure this is a really dumb quesiton. But i would appreciate any beginner help you have to give on the webserver.


-Nax

Player0
09-15-2003, 10:12 PM
Um, look in your httpd.conf file for DocumentRoot, it will contain the location. Probably c:/program files/apache2/htmldocs or something similar (i dont remember).

I usually make a c:\www folder and point DocumentRoot to that instead of the default one.

naxos
09-15-2003, 10:17 PM
C:\Program Files\Apache Group\Apache2\htdocs ?



Is that it? should it have a BUNCH of default files in there? like an index.html in spanish? Now how do i change the target directory? i cant seem to make too much sense out of the system monitor. Thanks for your help.


-Naxos

naxos
09-15-2003, 10:20 PM
ok, i think i found it..is this the line to change?

# Do NOT add a slash at the end of the directory path.
#
ServerRoot "C:/Program Files/Apache Group/Apache2/www"


i just added the www at the end



...yeah?

Thanks P0

Player0
09-15-2003, 11:20 PM
Naxos,

No, DONT change ServerRoot, put that back to what it was, or your module DLLs will probably not load.

Yes, its the htdocs directory for default.

I already told you, its the DocumentRoot directive. Do a search for DocumentRoot.

naxos
09-16-2003, 12:50 AM
Ok, cool well i got the appache thing working. but when i put my files in the directory, and then i type in the web address, and it goes to the directory listing for the whole /www folder...how do i get it to default to the index.htm?

Thanks for your help once again


-Nax

Player0
09-16-2003, 12:58 AM
search for index.html in the httpd.conf. Add index.htm in to that string. I forget the name of the string, but search on index and you will find it in there

naxos
09-17-2003, 04:50 PM
Great, ok now i have my ftp, and website up and running from my computer. Now to make a website, i have frontpage 2002 (i think...it may be 2000) But what steps do i need to take to enable frontpage extensions on apache 2.0? Thanks


-Nax

Player0
09-17-2003, 06:17 PM
You dont need to install Frontpage extensions. In fact, I wouldnt bother with it. Just upload the files yourself.

Check out apache.org for documentation on it. Ive never done it on Apache myself, just IIS.