Questions tagged [documentroot]
97 questions
1
vote
1 answer
Nginx rewrite root to sub-folder without changing server root
I am trying to move an old app to nginx from apache but I froze on here.
The /.htaccess
RewriteEngine on
RewriteRule ^(.*) public/$1 [L]
The /public/.htaccess
Options +Indexes +FollowSymLinks -MultiViews
RewriteEngine On
RewriteCond…

dev
- 111
- 1
- 3
1
vote
2 answers
I am unable to deny server filesystem access with a custom DocumentRoot in Apache?
CentOS 7.1 - Apache 2.4.6
Default configuration contains the following:
....
AllowOverride none
Require all denied
...
DocumentRoot "/var/www/html"
If I change the DocumentRoot, I get:
403 - You don't have…

beanaroo
- 113
- 4
1
vote
1 answer
WIldcard SSL Subdomain Not Pointing at Correct DocumentRoot 3
I have the same problem than:
WIldcard SSL Subdomain Not Pointing at Correct DocumentRoot
but the answer does not help me.
I have a Wildcard SSL installed on my Apache server.
With HTTP :
www.example.com points to documentroot…

Bruno de Goyrans
- 101
- 1
- 3
- 10
1
vote
4 answers
Apache 2.4 Virtual host apache.conf 403 permission & 404 document root access errors
I know this questions has been raised before, but I swear I have read through the other posts. I am using virtual hosts on Apache/2.4.7 (Ubuntu) server to host multiple wordpress sites. I have one site, SiteA which is running fine but SiteB…

phillipsk
- 185
- 2
- 8
1
vote
1 answer
Accessing site after IP redirect
we are using Apache2 to host multiple sites on one system in our local network. One such site is the following:
ServerName wiki.idi.local
DocumentRoot /srv/dokuwiki/engineering
On our local DNS server we…

Mircea M
- 113
- 2
1
vote
2 answers
Apache2 reverseproxy - How to set a DocumentRoot on the server?
I've configured a reverseproxy with apache2. The reverseproxy configuration looks like this:
ServerName someserver.com
ProxyRequests Off
ProxyPass / http://123.123.123.123/var/www/someserver.com/htdocs/
…

user3617604
- 13
- 1
- 3
1
vote
0 answers
set document root for external calls
I'm using mod_userdir to set my document root to
/home/user/server/public_html/
I also setup a virtual host that will redirect for the ServerName domain.com to
/home/user/server/public_html/domain.com/
In that vhost config I also set the document…

steros
- 121
- 5
1
vote
1 answer
Why can't I change document root in apache without error?
I'm trying to change my document root in apache so I can start a new project and keep an old one available so I can reference the files. Whenever I try to change the document root, though, I get a 403 Forbidden error.
It seems like I've tried…

David
- 11
- 3
1
vote
2 answers
Testing vhost config
I've been battling to get a vhost config working on an internal development server at work. I have found other vhost configs in the site-available directory. For some reason, I can't see why my new vhost is not responding to any requests. All i get…

user2108258
- 303
- 1
- 4
- 10
1
vote
1 answer
Apache - how do I create an exception for a vhost's VirtualDocumentRoot in httpd.conf?
I'm new to Apache, and I'm wondering if there's a way to configure VirtualDocumentRoot to create an exception for just one of my vhosts on my local server. Currently all of my sites are stored in folders with the convention sitename.dev. In…

luke
- 13
- 1
- 4
1
vote
2 answers
XAMPP pointing a file outside root folder
I am using XAMPP for first time in Mac. Running out problems accessing other than root folder(htdocs).when I am placing my web application inside htdocs with default httpd.conf file it works when I try to point my web application url in httpd.conf…

Ravi
- 111
- 1
- 4
1
vote
1 answer
setting php.ini to use / for webroot?
New at this, so apologies if I'm not using the correct terminology, but... Locally, in my scripts, I can include scripts using:
include('/include/sample.php');
And it will automatically traverse to my web directory for inclusion... However, when I…

user87732331989
- 11
- 2
1
vote
1 answer
Cant start apache, says html folder not directory
When I attempt to start httpd:
[root@cameronaziz www]# service httpd start
Starting httpd: Syntax error on line 292 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
…

Cameron Aziz
- 275
- 1
- 4
- 13
1
vote
1 answer
nginx doesn't find the directory but apache does
I use apache as the backend server and nginx on the frontend. Apache listens to port 8080 and nginx to port 80. What I do is have the root point to the public folder foreach virtualhost:
ServerAdmin webmaster@localhost
…

Jürgen Paul
- 1,265
- 4
- 15
- 22
1
vote
1 answer
Mapping different ServerPath to different DocumentRoot with the same address
I am using an Apache server within an intranet to give access to reports. I want, with the same servername, to map a server path to a different documentroot that happens to be a file share.
Is this feasible with a VirtualHost ?
…

kev
- 11
- 1
- 3