Questions tagged [documentroot]
The documentroot tag has no usage guidance.
14
questions with no upvoted or accepted answers
1
vote
1
answer
133
views
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 ...
1
vote
0
answers
77
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
/home/user/server/public_html/domain....
1
vote
1
answer
2k
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 ...
1
vote
1
answer
1k
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
1
answer
131
views
Apache2 returns 403 for static file request on root
On my new Apache/2.4.52 (Ubuntu) Server installation, the SSL configuration in general runs well, having Tomcat apps proxied and working.
Still, the static file configuration for root does not work. ...
0
votes
0
answers
82
views
Secure location of PHP files used in LAMP stack
I'm setting up a LAMP stack on Ubuntu 20.04, and had this recent discussion with a colleague about the fact that it's better to not keep the PHP scripts of all of your stack (classes, API Controllers ...
0
votes
0
answers
1k
views
Apache2 alias loading from document root instead of alias directory
I have problem with apache2.
I'm new to it and I'm trying to solve some problems.
I have a server running debian with apache2.4 installed and 3 web-site running. A Shiny Server, a django website and a ...
0
votes
0
answers
393
views
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 ...
0
votes
0
answers
120
views
Apache2 docroot and the directory directive in apache2.conf
Why is in standard apache2.conf only the container directive <Directory /var/www/> instead of the docroot <Directory /var/www/html>?
I have the following release:
$ lsb_release -a
No LSB ...
0
votes
2
answers
1k
views
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
<VirtualHost *:8000>
DocumentRoot "/newwebroot"
</VirtualHost>
...
0
votes
1
answer
775
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.
/home/...
0
votes
1
answer
387
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 /var/www/html/websites/...
0
votes
2
answers
49
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
1
answer
185
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 (/var/opt/sun_docs/...