Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

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
0
Tegwin15
Asked:
Tegwin15
1 Solution
 
martinsysCommented:
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

0
 
shalomcCTOCommented:
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/
0
 
Tegwin15Author Commented:
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.
0
Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.

 
martinsysCommented:
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
0
 
GtGCommented:
if you want use use virtual folders (like in iis) pointing a different location in your hard drive rather than a subfolder of root, you need to use directive "alias". Apache doc example is:
--------------------
Alias /image /ftp/pub/image
<Directory /ftp/pub/image>

Order allow,deny
Allow from all

</Directory>
--------------------
so if you write
Alias /FOLDER1 foldersreallocation
[FOLDER1]virtual folder name
[foldersreallocation]hard drive location ex: d:/picture1
you can access picture1 with http://servername/FOLDER1

Dont forget to restart your server after changing and saving your configuration file

You can use apache-conf for gui.
www.apacheconf.com
0
 
Borg47Commented:
Copy your stuff to C:\Program Files\Apache Group\Apache\htdocs
0

Featured Post

Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now