All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
2 answers
269 views

Apache rewrite rule for a folder to a different domain

I need to redirect all requests concerning a folder to another (old) web server called www2 keeping the entire original path, for example https://www.example.org/thisfolder/maps/map.jsp?id=2345 must ...
Steph's user avatar
  • 13
0 votes
0 answers
34 views

Isolating a WordPress wesbite within a sub-directory of another

Is it possible to isolate a website within a sub-directory of another on a WHM server? And by isolate, I mean in the event that website within the sub-directory is compromised any malware is contained ...
Levi Cole's user avatar
  • 101
1 vote
1 answer
114 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 ...
Green Root's user avatar
0 votes
0 answers
113 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 ...
John Goofy's user avatar
1 vote
1 answer
3k views

Apache: No matching DirectoryIndex

I'm newbie in apache, i have the following directory structure: html |-- moodle |-- singapur |-- app |-- public |-- js |-- css |-- img |...
ignacio.saravia's user avatar
0 votes
3 answers
1k views

Apache cannot access external drive on Linux Mint

I have a Linux server and a Windows server with a external drive for my website files. The problem only exists in Linux Apache configuration, where I cannot access the files for the sites located on ...
H35am's user avatar
  • 111
0 votes
1 answer
25 views

In Apache/local, how can I support both directory access and named-host access?

I understand how to use Directory and (I think) VirtualHost directives. I further understand that I can't mix them (although I can nest them). When I mix them I get 404 not found for the Directory-...
David Spector's user avatar
1 vote
1 answer
751 views

Customizing apache directory listing ONLY for subdirectories

I have a Download folder where I set up a directory listing sorted by last modified date, like this : <Directory /var/www/html/Downloads/> Options +Indexes ...
Jean D's user avatar
  • 11
1 vote
1 answer
676 views

Apache Reverse Proxy | Wildcard directory rerouting (.htaccess)

How would it be possible to have a wildcard directory proxy? I have gotten the basics but the issue is, it gives out the directory which I'm in, my htaccess file: RewriteEngine on RewriteCond %{...
George Tsatsis's user avatar
-1 votes
4 answers
18k views

How to set up apache virtualhosts serving different directories?

On my Ubuntu 16.04 system, I want to set up several websites that are served from several directories, that is, same domain, same port, same IP address. However, I don't know how to specify them. All ...
Tobias's user avatar
  • 11
2 votes
0 answers
2k views

Automatically mapping subdomains to directories with Apache 2.4?

I manage a lot of projects on my personal development server. I just upgraded Apache and accidentally reset the configuration files in the process, so I thought this was a good opportunity to optimize ...
Allenph's user avatar
  • 135
0 votes
1 answer
2k views

Apache Aliased Directory doesn't work for child directories of alias

I'm trying to run two different applications under user. Application 1: /home/user/public_html/app/public/ Application 2: /home/user/public_html/forum/ VirtualHost has the Server set to the ...
acupofjose's user avatar
4 votes
2 answers
5k views

How to Grant Apache Access to Directory

I am currently getting a locally hosted website up and running, but have encountered problems in accessing it from the host computer and other computers, as well. I have already created exceptions in ...
Sam K's user avatar
  • 141
1 vote
1 answer
203 views

Specify which directores to look for .htaccess file

I'd read that enabling .htaccess for all directories causes a performance overhead, because all subfolders are also scanned for .htaccess files. I'd like to only have the .htaccess file read in: /var/...
gijs007's user avatar
  • 117
1 vote
1 answer
307 views

How to prevent hotlinking for subdirectories only?

I want to prevent hotlinking to all subfolders in /var/www/store but at the same time allow linking to its index page. I tried doing this: <Directory "/var/www/store"> DirectoryIndex index....
Question Overflow's user avatar
0 votes
2 answers
329 views

How to restrict access to root to daemon user?

I have Apache 2.4 with PHP 5.5.14 installed on latest Debian. According to Apache security tips&tricks I've set my httpd.conf to this: <Directory /> AllowOverride none Require all ...
Kevin Kopf's user avatar
2 votes
1 answer
16k views

Can I have two (or more) Apache VirtualHosts separated by subdirectories?

I think this is a simple question, but let me explain better. I have the following development environment: Ubuntu Server 12.04 LTS; Apache 2.4; PHP 5.5; Everything is working fine, except the ...
humungs's user avatar
  • 265
1 vote
1 answer
817 views

apache override authentication in a specific folder

How do I change/override the authentication in apache to a different one in a subfolder? I tried this one but it didn't work. How can I fix it? <Directory "/"> AuthName "Front End Access" ...
user avatar