Questions tagged [documentroot]
97 questions
1
vote
1 answer
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 to type each time I check out a project from SVN…

mingos
- 157
- 2
- 8
1
vote
1 answer
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 Rails app using Phusion Passenger, I can do that…

user55578
- 119
- 1
- 2
1
vote
1 answer
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 web page of app.example.com, the DocumentRoot for…

Suhail Thakur
- 11
- 2
1
vote
1 answer
Apache 2.4: owncloud in sub-directory outside of DocumentRoot
I am working on moving current setup of owncloud from sub-domain https://cloud.example.com to sub-directory https://example.com/cloud to make all my apps covered by one SSL certificate. The problem is that owncloud makes redirect to login page, but…

Green Root
- 133
- 5
1
vote
1 answer
Redirect to folder only if root from other site referrer
I have a redirect from root to subfolder. If user visits https://example.com it redirects to https://example.com/subfolder. But I want it not to redirect if referrer is my site, so user can reach root page.
For example:
User visits…

Stas Ponomaryov
- 13
- 2
1
vote
2 answers
How to use Mod Rewrite to access non-document-root folder files?
I have the following structure for my website codes at /var/www/html
-- files
---- test.txt
-- app
---- SomePhpCodes.php
---- SomePhpCodes.php
-- public
---- index.php
---- .htaccess
The document root is set to be "/var/www/html/public" but I…

cr001
- 195
- 2
- 8
0
votes
1 answer
can I configure Nginx to enable HTTP in a documentRoot and HTTPS in another documentRoot?
I have SSL enabled via certBot and reversing proxy for my Node-js and everything works fine if my clients request to https://example.com/ they will see my web site under /var/www/html/ Document Root Folder.
besides, I want to config Nginx so that if…

Mahdi
- 1
- 2
0
votes
0 answers
Apache If Else documentroot
I want to change the Apache DocumentRoot setting depending on what IP address is accessing the server. I have added this code to the vhost.conf file but Apache always accepts the last declaration of mydocumentroot and ignores the if statement…

Juan Cullen
- 1
- 2
0
votes
1 answer
AWS eb deploy Changes httpd.conf Virtual Hosts Document Root
I run an AWS ElasicBeanstalk Apache server. There is a subdomain with a different DocumentRoot (see below). When I use eb deploy and then ssh into the machine to manually change the /etc/http/conf/httpd.conf file, everything works just fine.
If…

mo_st
- 39
- 5
0
votes
0 answers
Apache2 docroot and the directory directive in apache2.conf
Why is in standard apache2.conf only the container directive instead of the docroot ?
I have the following release:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: …

John Goofy
- 129
- 5
0
votes
2 answers
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 can be found on their profile. This is an Spanish…

JJarava
- 167
- 2
- 9
0
votes
1 answer
Is it a good idea to put shared files outside public_html / root?
I just figured out that I can place files outside the domain root (outside public_html).
The benefit of placing functions outside the domain root is that I can use the same file on multiple domains. If I update my file in a single location, all my…

Jens Törnell
- 101
- 2
0
votes
2 answers
Apache serve specific documentroot on IP:PORT
I want to serve a specific documentroot on port 8000
I tried creating a .conf file in /etc/httpd/conf.d:
Listen 8000
DocumentRoot "/newwebroot"
On nginx this is relatively simple, you just define a server…

Misterr Moron
- 75
- 11
0
votes
1 answer
How to configure nginx to serve one site from two different document root and using different php depending on URL
I'm trying to configure nginx to use two different document root depending on url, so if some one connects to www.example.com will get site from /portal/public_html but if client connect to www.example.com/account will get sites from other directory…

B14D3
- 5,188
- 15
- 64
- 83
0
votes
1 answer
Varnish and Apache Document Root
I've inherited a system with a Debian 8 with an Apache installed and multiple VirtualHosts. In my 000-default.conf file I've got /var/www/ as document root, not /var/www/html and I can't found anywhere a DocumentRoot with /var/www/html.
Now I've…

Jon Zangitu
- 101
- 2