The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
2k views

How can I edit an individual site's virtualhost using either WHM or cPanel? [closed]

I've been using Webmin/virtualmin for years. In Webmin, I can edit Apache config files quite easily. For example, if a user wants to change the DocumentRoot because he/she wants to serve up a Ruby on ...
0
votes
2answers
446 views

Apache HTTPd FollowSymLinks path permission

I'm configuring my development environment with a basic Apache HTTPd configuration. But, to avoid a often problem, I want to map my test URL to my development folder. I'm using Ubuntu. My ...
1
vote
1answer
1k views

ubuntu apache subdomains pointing to main domain

I have a ubuntu server with apache setup, the main domain on the server is a subdomain app.example.com, which is working fine. Now if I setup john.app.example.com, then that also is displaying the ...
8
votes
2answers
21k 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
398 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
1k 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
169 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 ...
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
112 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
616 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
48k 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
749 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
4k 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
3k 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
27k 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
5k 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 ...