?
Solved

Apache on Windows

Posted on 2003-03-24
6
Medium Priority
?
386 Views
Last Modified: 2010-03-17
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
Comment
Question by:Tegwin15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:martinsys
ID: 8199988
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
 
LVL 33

Expert Comment

by:shalomc
ID: 8203614
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
 

Author Comment

by:Tegwin15
ID: 8208958
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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 

Expert Comment

by:martinsys
ID: 8214813
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
 

Accepted Solution

by:
GtG earned 75 total points
ID: 8229192
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
 

Expert Comment

by:Borg47
ID: 8818287
Copy your stuff to C:\Program Files\Apache Group\Apache\htdocs
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question