The documentroot tag has no wiki summary.
0
votes
2answers
23 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
35 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
28 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
64 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 ...
2
votes
0answers
86 views
Apache2 VirtualDocumentRoot wildcard subdomains with fallback
Configuring a local development linux box I'd like to have some sneaky Apache2 configuration which would do the following, when I request 'sub.domain.tld.local':
1.) Serve from: ...
0
votes
1answer
51 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
45 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
98 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
215 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
188 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 ...
0
votes
0answers
120 views
Combining DocumentRoot and proxypass in Apache Web server
I have an application running on tomcat and fronted with Apache. My server name is www.abc.com so in my vHost setting I have
DocumentRoot /home/user/www.abc.com
ServeName www.abc.com
ProxyPass ...
1
vote
1answer
161 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
143 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
791 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
422 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
80 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 ...
4
votes
2answers
4k 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
74 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 ...
1
vote
2answers
708 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
88 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
1answer
243 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 ...
4
votes
2answers
67 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 ...
2
votes
1answer
215 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
76 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 ...
0
votes
1answer
640 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
816 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
406 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
638 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?
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
1answer
292 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
651 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 ...
0
votes
1answer
575 views
change website document root in Kloxo?
I am hosting multiple websites using Kloxo on my VPS, say a.come, b.com, c.com, etc.
Right now I am logging in as admin and whenever I created those websites, the document root is always ...
6
votes
2answers
6k 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
36 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
261 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
686 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
126 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 ...
1
vote
4answers
1k 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
95 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
591 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 ...
4
votes
2answers
18k 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
528 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
3k 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
2k 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 ...
0
votes
3answers
16k 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
3k 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 ...
