Questions tagged [documentroot]
97 questions
0
votes
2 answers
SSL on apache; the requested URL was not found
I am setting up SSL on my Apache/2.4.6 RHEL server. In httpd.conf, have VirtualHosts as shown below...
ServerName foo.bar
Redirect permanent / https://foo.bar
DocumentRoot…

Jon Snow
- 1
- 1
- 1
- 2
0
votes
1 answer
HAProxy - backend with subdirectory
I have simple haproxy configuration: two servers, one is frontend, two is backend with jboss application. Here is config:
defaults
mode http
log global
option httplog
option …

QkiZ
- 634
- 2
- 9
- 22
0
votes
1 answer
Nginx not making proxy_pass when getting files (other than index.html) from Apache's Document Root
I think I'm chasing my own tail here and I've decided to ask all you gurus.
I have two machines, one has a reverse proxy Nginx and the other an Apache running several virtual hosts.
The nginx correctly does the proxy_pass and I'm able to view the…

lgg
- 141
- 2
- 11
0
votes
1 answer
Apache Adding DocumentRoot to URL when www not used - could be rewrite issue
When I visit www.mysite.com all is well. When I visit mysite.com (without the www) I get redirected to http://www.mysite.com/home/admin/domains/mysite.com/public_html which gives a 404 error.
/home/admin/domains/mysite.com/public_html is my…

HighlandGuy
- 31
- 3
0
votes
1 answer
Set up instance of Drupal website on fresh Ubuntu server?
I am a brand new to Drupal...and web programming, for that matter. I have set up an Ubuntu 12.10 server, installed Apache, and installed Drupal 7.24 (all through bash...I am working from the server ssh). I now want to take a Drupal repository from…

robinSparkles
- 3
- 1
0
votes
1 answer
Apache Virtual host (SSL) Doc Root issue
I am having issues with the SSL document root of my vhosts configuration. Http sees to work fine and navigates to the root directory and publishes the page fine -
DocumentRoot /var/www/html/websites/ssl.domain.co.uk/ (as specified in my vhost…
user191828
0
votes
1 answer
DocumentRoot Directory Apache httpd
I want to make changes over my httpd.conf file of Apache running in Windows, but I want to know why need to use (or declare) the same root twice.
DocumentRoot "C:/Apache/htdocs"
Options FollowSymLinks
AllowOverride None
…

Luigi Giuseppe
- 631
- 1
- 6
- 4
0
votes
2 answers
Nginx document root owner
I am setting up a django web app using Nginx + Gunicorn. I am using also an Amazon linux instance that is based on CentOS distro.
Assuming that Nginx is running with a nginx user what's the best practice for the document root folder?
Now I created…

carlo.polisini
- 335
- 1
- 3
- 7
0
votes
1 answer
index.html is not read from the intended directory
I am trying to set up a virtual host on a Fedora 18 installation. This is on Rackspace.
Following is my /etc/httpd/conf/httpd.conf (I deleted all the comment lines for brevity):
ServerRoot "/etc/httpd"
Listen 80
Include…

EastsideDev
- 333
- 3
- 13
0
votes
1 answer
Apache, serving a subdomain from a different directory than webroot
I'm trying to serve two projects, separately, from a shared directory on an Ubuntu server via Apache. The directory of the whole kit and kaboodle looks something like:
/project
/api
/app
Now, I'd like to have this all fit inside one VHost…

mimarcos
- 1
0
votes
2 answers
setting up a vhost alias with a wildcard for domain and document root - doc root not parsed correctly
I only have a fuzzy idea of the correct terminology to use in this question so please feel free to help me by clarifying it.
I have a vhost setup. The idea is that I want a wildcard to route all requests for root.TERM.lh to a /TERM/ document root.…

hollsk
- 101
- 4
0
votes
2 answers
How to set PHP root directory?
I've a web server with CentOS and DirectAdmin. I found that php is allowed to ignore the virtual host DocumentRoot. For example the following code:
Result on a listing of the root directory of the server.
Could it be…

Zagorax
- 329
- 6
- 18
0
votes
1 answer
Default DocumentRoot directory redirects to a VirtualHost in Virtualmin
When I try to access DocumentRoot it redirects to one of my VirtualHosts, I can't see contents in /var/www/html.
It's under Virtualmin 3.94 and I think someone else my problem here, but I can't find the options he tried to fix.
How can I fix this…

Zim3r
- 1,454
- 5
- 24
- 45
0
votes
2 answers
Two Server Names mapped to the same DocumentRoot
I have a server with two virtual hosts pointing to the same DocumentRoot folder. In that folder there is a Magento installation that manages properly both domains.
Just in case this is important, the DocumentRoot is for both…

Daniel
- 3
- 1
0
votes
2 answers
Finding Document Root
I can browse the company intranet site using the following URL.
http://192.168.1.2/admin/index.php
How do I find the full path of the file "index.php"?
I tried...
locate admin/index.php
and it gave me a lot of results from different directories.…

shantanuo
- 3,579
- 8
- 49
- 66