Link to home
Start Free TrialLog in
Avatar of Tegwin15
Tegwin15

asked on

Apache on Windows

I have installed Apache server ok on my Windows 2000 server and it all works ok with a demo page when I type http://localhost from the browser. I would like to know how to add a web site to this so that for exaple when someone types http://localhost it comes up with my Index.html pages and graphics instead. Where should I copy the files etc. Also does anyone know if there is a "GUI" front end that can be used with Apache on windows.

Thanks
Teg
Avatar of martinsys
martinsys

http://httpd.apache.org/docs/windows.html
find your conf file (usually under C:/program files/apache group/apache it's where you installed your apache program) and open it like a text file then set the root folder in this section:
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"

so you can set yourself your root folder beside the default above

Avatar of Shalom Carmel
Teg,
Try to get IBM's free distribution of the Apache server (dubbed IBM HTTP server).
They have tweaked Apache a bit, and added an easy to use graphical management interface.


http://www-3.ibm.com/software/webservers/httpservers/
Avatar of Tegwin15

ASKER

Thanks to martinsys . I have treid this and it works if I use the default location but I   DocumentRoot to another location in this case D:/website and also changed the <Directory "D:/website"> which it said I should change, but it keeps reverting back to the default location. I have noticed that it uses / instead of \ and I have made sure they are in the right place, but to no avail


Also If I want to set up say multiple folders (ie so that someone can type http://servername/FOLDER1/index.html and http://servername/FOLDER2/index.html Do I just need to add them all as Document root" Like in IIS you have virtual Directories. How can this be acheived.
Sorry I can't help you. That is all I know when I had Apache on windows 3 year ago. After that I am using IIS and there we can set many virtual directories, so I don't know how to set it on Apache. Right now the bank I work on gonna have a web server and I in the middle of figuring which one I will use (Apache or IIS). I am sure the creators of Apache can have a function like virtual Directories made up. Best regards martinsys
ASKER CERTIFIED SOLUTION
Avatar of GtG
GtG

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Copy your stuff to C:\Program Files\Apache Group\Apache\htdocs