Help - Search - Members - Calendar
Full Version: Apach Virtual Directory
The Planet Forums > Operating Systems > Microsoft Windows > Windows HOWTOs
rasanet
Hi,

I installed Apache for windows (2.0.48) and I wanted to add a new "DocumentRoot" beside htdocs, but each time I add new address to this line I get access forbiden error :

# This should be changed to whatever you set DocumentRoot to.
#


Can any one advise how I can define a new path to the site folder ?

Thanks! icon_smile.gif
gooberdlx
did you give that folder the correct perms of the user of the Apache server?
Luzer
that would be?
gooberdlx
first.. you have to use forward slashes, not backslashes cause the internal execution utilizes the Unix flavor.. even though its on Win32..

refer to here for platform help
http://httpd.apache.org/docs-2.0/platform/windows.html

it has a section about APache as a service with a specially created User
http://httpd.apache.org/docs-2.0/platform/...ows.html#winsvc

and finally.. ditch apache and run IIS.. works better icon_smile.gif
Luzer
sure about that? i herd that Apache is more stable and is beter under loads.
gooberdlx
I know this from personal experience..

if you were going to run Apache.. why WOULDNT you get a linux box in the first place?

Granted I run a Win2k3 WE box with IIS 6, I come from the Apache development community.. I would tend to think that each system has their tight integrations with their own software.

and.. try to serve up ASP.Net pages with Apache faster than IIS 6.. mono and dotgnu can't compete yet..

Jake
rasanet
Guys,

this is a node in our LAN and we prefer to keep all nodes as
win base system, now for some experiment, we prefer to test all scripts(PHP,CGI) on IIS, and Apache for win.

Regarding the Alias I wanted to add I tries this but still not working:

Alias /websites/ "D:/websites/"


Options FollowSymLinks
AllowOverride None


the main issue here that when ever I give the address to browser I got forbiden error!
gooberdlx
Sorry for the digression, as you have a wonderful point of testing in both environments icon_biggrin.gif

What user is your Apache service running under?

Make sure that user has read perms on the folder in NTFS.. Read and Execute for the base directory and any subdirs and files. grant read,write,execute, and delete for the user on the LOG directory and you should be set.

Do other document paths work?

Check your Event Log and see if it tells you anything more descriptive.
Paz
maybe a stupid question, but did you put an index.htm in the webfolder?

I'm not sure if apache on windows is running as a separate user. if that's the case you'll have to assign read rights to the folder for the specific user..
rasanet
even if you do not put index.html or any other index file on the folder, by default apache should shows directory listing!:confused:
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.