The tag has no wiki summary.

learn more… | top users | synonyms

7
votes
2answers
14k views

Best permissions/ownership for apache document root

I need some help setting the correct permissions or ownership of the apache document root. Here is what I need: different websites stored in /var/www/html/<site> two users should update/manage ...
0
votes
2answers
40 views

redirection problem for my sites

I have a site example.com and another one test.example.com. Both have different configuration file. But when I enter url test.example.com it will redirect to example.com. configuration file for ...
0
votes
1answer
377 views

Apache 2.2, changing DocumentRoot depending on the HTTP auth credentials provided by client

Is this even possible? Say I have a server, devbox.local, which has several HTTP auth users: alan, bill, carl. What I'm trying to do is tell Apache to use a different DocumentRoot depending on who is ...
0
votes
2answers
927 views

Shared Document Root on Clustered Apache Setup

I'm setting up a cluster of three apache servers and I can't find much information on how to best handle a shared document root. Currently I was planning on building a dedicated file server and share ...
0
votes
1answer
164 views

What is /opt/sun_docs used for, in Solaris 10?

Solaris 10, SPARC. While trying clean up my "/opt" directory, I saw the "sun_docs" directory. I scanned the contents with "du -a", and also found a single, possibly related file ...
4
votes
5answers
2k views

Inconsistent trailing slash in DOCUMENT_ROOT variable in PHP when using Apache

In different server environments, the PHP $_SERVER['DOCUMENT_ROOT'] super global sometimes has a trailing slash and sometimes it does not. I would have thought this issue is directly related to how ...
0
votes
1answer
111 views

Why did my DocumentRoot change?

My document root (suddenly and unexpectedly) changed to /htdocs from /var/www. This happened after I restarted apache2. The only thing I changed was the httpd.conf file which now reads as follows: ...
2
votes
1answer
611 views

setting documentroot in apache

i've set the documentroot in httpd.conf as: DocumentRoot "C:\Users\user1\Documents\WebProjects" if the files are located in WebProjects, they work; however if i create a sub folder [project] in ...
7
votes
2answers
37k views

How do I change the document root of a Linux Apache server?

I'm trying to learn how to configure an Apache HTTP server (with which I have no experience) someone else has setup in a VM running Ubuntu 8.04. I know the server is running, since I get ...
5
votes
2answers
676 views

What is the proper way to set up the Apache document root in terms of privileges?

I have just installed Ubuntu 9.10 server edition on my machine and I wish to run my own personal local server with other users in the same LAN. First, I was wondering what folder directory structure ...
0
votes
4answers
3k views

How to rewrite index.php (and other valid default files) to the document root using mod_rewrite?

I would like to redirect index.php, as well as any other valid default file (e.g. index.html, index.asp, etc.) to the document root (which contains index.php) with something like this: RewriteRule ...
0
votes
1answer
2k views

Setting multiple Apache VirtualHosts to same DocumentRoot without url changing?

I'm trying to get domain.fi and domain.com to point to the same DocumentRoot, without the domain changing in the browser url. Is that possible with Apache? I've got the both domains pointing to the ...
2
votes
3answers
24k views

How to configure Apache document root?

I am in the process to migrate to a new web server and I would like to have a clean and safe file architecture for apache and my web application. The server will serve one single php/mysql ...
0
votes
2answers
4k views

Windows 7: How to change location of a profile's folders?

Am trying to get Widows 7 to behave when told to change a user's "Desktop", "Saved Searches", "Desktop", "My Music", and the rest of the folders that "point" to their different directories and that ...
1
vote
1answer
2k views

DocumentRoot and htaccess files

I have a muluitple vhosts set up all with the same DocumentRoot pointing to a common set of files, I have set up AliasMatch for for the bespoke files on each site, I was wondering if I can have a ...