Questions tagged [documentroot]
97 questions
0
votes
2 answers
Multidomain and document root on a single shared server
I have a website on a shared server with a domain like aaa.com
Its document root is by default "/www" folder.
...
I have a second site with a domain like bbb.com
I checked multidomain on the hosting manager.
I put the website in a "/wwww" folder, to…

GG.
- 187
- 1
- 9
0
votes
4 answers
Sharing www folder breaks IIS sites
I would like to share my www folder on my local machine with others in my office but when I do this and try navigate back to my localhost sites, I get the error HTTP Error 401.3 - Unauthorized.
Now I have done a search already and found this…

SixfootJames
- 113
- 1
- 4
0
votes
3 answers
Apache Documentroot access forbidden
Running Arch Linux I am trying to get apache to use /www (not /var/www) as DocumentRoot. /www is a softlink to /home/user/www. However, I keep getting an "Access Forbidden" error. The / and /home folders are part of different partitions. Could this…
user60129
0
votes
1 answer
.htaccess question - document root - Do we need this RewriteRule in here?
On our virtual host, we have defined our document root to point to var/www/something/public
Since we have that, do we need, on our .htaccess file (that will be placed on public directory btw), this?
RewriteCond %{REQUEST_URI}…

MEM
- 119
- 1
- 7
0
votes
2 answers
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 development path is located under the following example…

Andre Pastore
- 163
- 1
- 12
0
votes
2 answers
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 example.com
ServerName …

redirect-p
- 1
- 1
0
votes
1 answer
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 logged in at the time. So user alan might see a…
TimE
0
votes
2 answers
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 the website source over NFS. Then each apache…

Harry
- 221
- 1
- 5
- 9
0
votes
1 answer
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 (/var/opt/sun_docs/sundocs.html).
If I understand correctly, it looks…

benc
- 683
- 1
- 5
- 13
0
votes
1 answer
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:
ServerName hostname
…

Josh K
- 454
- 1
- 6
- 18
0
votes
4 answers
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 ^index\.(php|htm|html|asp|cfm|shtml|shtm)/?$ /…
user41138
0
votes
1 answer
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 same DocumentRoot and working, but the domain.com…
Jukka
0
votes
1 answer
Apache2 returns 403 for static file request on root
On my new Apache/2.4.52 (Ubuntu) Server installation, the SSL configuration in general runs well, having Tomcat apps proxied and working.
Still, the static file configuration for root does not work. My config is like this:
…

philburns
- 101
- 2
0
votes
0 answers
Secure location of PHP files used in LAMP stack
I'm setting up a LAMP stack on Ubuntu 20.04, and had this recent discussion with a colleague about the fact that it's better to not keep the PHP scripts of all of your stack (classes, API Controllers etc.) within the web directory of your server, as…

DevelJoe
- 187
- 3
- 11
0
votes
0 answers
Php-fpm cannot run a *.php file from a symlink pointing outside the DocumentRoot directory. Error "File not found."
if I will create a virtualhost with PHP mode: php-fpm (using Virtualmin)
if I enable Options +FollowSymLinks in the Virtualhost
if I create a symlink inside DocumentRoot to a directory outside DocumentRoot
, then php-fpm will refuse to run any…