The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
18 views

Apache - Difference between VirtualDocumentRoot and DocumentRoot?

I found it very difficult to find this answer, after an hour (yes, an hour) of googling and browsing through several posts on stackexchange and several other forums... even through Apache's ...
1
vote
3answers
103 views

How to disable the default document root in Apache?

I host some websites on my server running Apache Httpd. Each website has it's own domain or sub-domain and virtual host. Therefore, I need no default document root. Is it possible to disable ...
0
votes
1answer
18 views

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 ...
0
votes
0answers
7 views

Redirect 2 different domains to 2 different directory + .htaccess [duplicate]

Here is my directory structure: root root/exampleA root/exampleB How to redirect example.com/A to exampleA directory and redirect the rest of urls to exampleB.com
1
vote
1answer
42 views

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 : ...
0
votes
4answers
179 views

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 ...
-3
votes
2answers
279 views

How to whitelist a directory in apache [closed]

Files that I want to serve via browser are located at /root/my_folder (ubuntu 14.04). I changed a path from /var/www/html to /root/my_folder in /etc/apache2/sites-available/000-default.conf, after ...
1
vote
2answers
186 views

Lighttpd static file server 403 forbidden error

I installed lighttpd on Debian Jessie for serving static files, I have a USB drive mounted at /media/storage, with /media/storage/www as my document root and my lighttpd.conf looks like this: ...
1
vote
1answer
38 views

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: <VirtualHost *:80> ServerName wiki.idi.local DocumentRoot ...
6
votes
4answers
689 views

Security of Apache DocumentRoot

I have a general question about security of Apache DocumentRoot, which comes from a statement I read when installing Galaxy, a bioinformatic web service and infrastructure. The statement says ...
0
votes
1answer
38 views

Apache2 reverseproxy - How to set a DocumentRoot on the server?

I've configured a reverseproxy with apache2. The reverseproxy configuration looks like this: <VirtualHost *:80> ServerName someserver.com ProxyRequests Off ProxyPass / ...
-4
votes
2answers
129 views

how can i access a directory from network in apache using httpd.conf [closed]

I want apache to access a location which is in network that means instead of specifying a DocumentRoot from withing the server(mine is centos) i want the apache to access a directory which is on ...
0
votes
1answer
347 views

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. ...
1
vote
1answer
5k views

Apache doesn't start: syntax error…DocumentRoot must be a directory

I read all the previous answer but I couldn't fix my problem.. I'm changing the server where my website is hosted and I'm setting again apache.. Now, after installing php, fail2ban, etc i have that ...
1
vote
0answers
61 views

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 ...
0
votes
1answer
884 views

Apache Serving Wrong Document Root

I have installed SSL on a subdomain of my site. Everything works perfectly, except this strange behavior. If I point my browser at the following locations, these document roots are served: ...
0
votes
1answer
46 views

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 ...
0
votes
1answer
62 views

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 ...
1
vote
1answer
548 views

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" <Directory /> ...
2
votes
1answer
90 views

Is there anything wrong with making your documentroot tmpfs, if you've got the ram to spare?

As the title says, it strikes me that if I have an old mason webapp which is basically a few hundred perl scripts and components on disk, would it not run quicker if I made the documentroot a tmpfs? ...
-1
votes
3answers
53 views

Is there a DocumentRoot naming convention and why do some suggest /var/www/example.com over /var/www/example [closed]

As the title suggest, I was wondering if there is a technical reason behind naming a web application's documentroot with the domain name? From my limited experience, it seems that including the domain ...
1
vote
1answer
427 views

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 ...
0
votes
2answers
335 views

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 ...
0
votes
1answer
611 views

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 ...
1
vote
2answers
54 views

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 ...
0
votes
1answer
1k views

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 ...
0
votes
1answer
105 views

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, ...
0
votes
2answers
257 views

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 ...
0
votes
2answers
661 views

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: <?php print_r(scandir('/')); ?> Result on a ...
1
vote
2answers
1k views

XAMPP pointing a file outside root folder [closed]

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 ...
0
votes
1answer
1k views

Default DocumentRoot directory redirects to a VirtualHost in Virtualmin [closed]

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 ...
1
vote
1answer
422 views

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 ...
1
vote
1answer
343 views

Can a S3 mount be used as the document root for Apache?

Has anyone been successful in having their DocumentRoot reside on an S3 mount (using s3fs)? I currently have a mounted bucket at /mnt/s3. I can read and write files to it no problem. In my ...
1
vote
1answer
4k views

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 ...
1
vote
1answer
736 views

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: ...
0
votes
2answers
100 views

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 ...
5
votes
4answers
14k views

Why am I getting this error in the logs?

Ok so I just started a new ubuntu server 11.10 and i added the vhost and all seems ok ...I also restarted apache but when i visit the browser i get a blank page the server ip is http://23.21.197.126/ ...
0
votes
2answers
89 views

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 ...
4
votes
2answers
2k views

Apache: Client-IP-based DocumentRoot

I don't know if this could be possible on apache yet, I've done hefty amount of research before coming here. but: I have a VirtualHost running at *:80, ServerName to somedomain.tld. What I want to ...
0
votes
2answers
103 views

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 ...
-1
votes
2answers
795 views

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 ...
0
votes
3answers
681 views

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 ...
4
votes
2answers
107 views

Apache equivalent of IIS application roots

Someone just set up a directory for me on an Apache server where I will put my PHP application. This directory has an external path of 192.168.1.5/app and points to /home/test/app. My application ...
3
votes
1answer
436 views

Apache wildcard documentroot

I would like to use the the subdomain as my DocumentRoot folder foo.example.com Goes to /var/www/foo However I do not want to add a new entry for every subdomain Basically *.example.com ...
2
votes
4answers
93 views

Sharing the same document root - except for a folder and a file

I have two websites, websitea and websiteb. I have them both pointing to the same document root and all works fine, however I want websitea to have different db details to websiteb. Database details ...
1
vote
1answer
2k views

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 ...
1
vote
1answer
2k views

Apache refusing to change DocumentRoot

I've installed Zend Server CE 5.1.0 on Windows 7 Ultimate 64 bit in its default location, meaning the path to my htdocs is C:\Program Files (x86)\Zend\Apache2\htdocs. Not something that I would like ...
2
votes
1answer
788 views

Is it possible to serve different DocumentRoot from Virtual Host in Apache conf depending on IP of the visitor?

I just wonder if it's possible to define several DocumentRoots for single VirtualHost in httpd.conf and serve them out depending on IP of the visitor?
0
votes
1answer
730 views

.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? ...
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 ...