The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
5answers
3k 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
615 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 ...
9
votes
2answers
41k 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
703 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
25k 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 ...