All Questions
Tagged with directory apache-2.2
81
questions
3
votes
1
answer
1k
views
Ubuntu Apache Subdomain not Displaying
Using Ubuntu 18.04
I have my main website www.example.com, all the files are hosted in /var/www/html/ and it works as expected. I would now like to make a new website in a subdomain www.blog.example....
0
votes
1
answer
659
views
DirectoryIndex in Subfolder/New project with virtualhosts and SSL, same domain
I have som problems with setting up a new project in apache. I have an old project in sub.domain.com/api/something.php, but am trying to add a new project (symfony) that requires a DirectoryIndex, sub....
0
votes
1
answer
45
views
Protect a directory if remote host is/is not
How can I protect a directory within .htaccess only if the remote host is not 192.168.1.11 ?
Below is how I actually protect directories:
AuthUserFile /home/personal/.htpasswd
AuthName "Auth Area"
...
1
vote
0
answers
487
views
"Deny from all" not working
I have made following configuration on httpd.conf. But, any IP still can access PHPMyAdmin URLs/aliases. What have I missed? Is this related with "Alias" directive?
Alias /phpmyadmin /usr/share/...
1
vote
1
answer
742
views
Apache Redirecting All Sub directory Sub Folders Back to Root Directory [closed]
I have a website stored in a root folder. example.com correctly brings me to the website stored in /var/www/mainsite. I want to put multiple websites in sub folders. so example.com/website1, ..2, ..3 ...
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/...
0
votes
2
answers
1k
views
Reverse proxy domain subdirectory to another host serving the same domain name
I have a Debian 6.0 webserver correctly running with the following setup:
Nginx as front-server listening on the WAN facing interface port 80
Serving the domain HTTP mydomainame dot org (via ...
0
votes
1
answer
12k
views
How to Protect a Folder from Browser access but allow PHP scripts to acess it
So I currently have a folder located at /var/www/pictures, with /var/www being the document root for my web server. I want to have the pictures folder to throw a 403 forbidden error if a user tries to ...
-1
votes
1
answer
2k
views
Hidden Directory Detected
My company web application had a penetration testing done and there's a risk found is regarding the hidden directory:
http://example.com/aux/
http://example.com/cgi-bin/
http://example.com/com1/
http:...
0
votes
1
answer
3k
views
How do I allow access to a directory in apache that is actually a RewriteRule match?
We have a server with a lot of domains. Each domain will have one or more of the following admin areas that we wish to secure by IP:
domain.tld/admin (admin area)
domain.tld/blog/wp-admin (wordpress ...
1
vote
1
answer
1k
views
Apache Server - Subdirectory on different server [closed]
You have 2 different servers with different IP Addresses. Both servers are Apache based.
Server A: already hosts a website (http://example.com)
Server B: would host a WordPress website to be in a ...
2
votes
1
answer
365
views
Apache Location and Directory access
I have Apache 2.2 running on CentOS 6.4
There is application in / directory and folder where are some files, lets say it is /public.
I need to allow access to / directory to ip1, ip2, ip3 and allow ...
14
votes
2
answers
18k
views
Apache2 - 301 Redirect when missing "/" at the end of directory in the url
I haven't really noticed this Redirect(301) when requesting a url like this without slash("/") at the end: http://server/directory
The server will respone with a 301 Redirect Permanent header with a ...
0
votes
1
answer
1k
views
Using named groups in a DirectoryMatch directive
I have the following directive in my httpd.conf:
<DirectoryMatch ^/path/(?P<SI>[^/]+)/logs/bibi>
php_admin_value open_basedir /path/?P=<SI>/
</DirectoryMatch>
The pattern ...
2
votes
1
answer
3k
views
Apache: ExpiresByType per directory?
I have a folder with javascript files that should expire faster than the normal scripts.
Is it possible to let files expire per directory using Apache 2 other than .htaccess?
<IfModule ...
0
votes
1
answer
3k
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 />
...
0
votes
2
answers
106
views
Apache virtual hosts, aliasing, and directories
If you have an Apache running at somewhere.net, and you have a number of virtual hosts as well (a.somewhere.net, b.somewhere.net), you can access directories on the main branch while you are on the ...
0
votes
1
answer
653
views
How can i serve domain subfolder from different Apache 2 server?
Squid 3 reverse proxy is pointin to 80.241.222.151 for domain http:// www.megasity.com
Apache 2 server is on 80.241.222.151 with all files in the root folder so all requests are served from here
Now ...
16
votes
1
answer
15k
views
Is the Apache Directory directive supposed to be relative to the DocumentRoot or not?
Is the Apache Directory directive supposed to be relative to the DocumentRoot or not? I ask in the context of a VirtualHost, but it shouldn't make any difference.
In other words, is it supposed to be:...
-1
votes
1
answer
169
views
Directory theme of apache
I have a server with a web site. My document root is /var/www.
My configuration:
<VirtualHost *:80>
Servername www.eeeeeb.fr
ServerAdmin [email protected]
DocumentRoot /...
0
votes
1
answer
2k
views
Apache2 with Passenger and subdirectory with file listing
I have a server configured with redmine using apache2 and redmine. The configuration was relative easy:
<VirtualHost localhost>
RailsEnv production
# create a link in /var/lib/redmine/default/...
0
votes
1
answer
837
views
How to use a load balancer with apache with php based applications?
I have found that i need to add another server to my setup but my web application is designed with php. Basically, in my application, there is a mkdir command that makes a directory for the user. If i ...
9
votes
5
answers
136k
views
Allow subdirectory with Apache
I feel like this is a fairly simple fix and have seen similar problems when searching but haven't been able to fix it with those solutions. Basically the problem is I cannot access any subdirectories ...
1
vote
1
answer
2k
views
Apache 2.2 LDAP Authentication Error 500 - AuthLDAPURL
I have an Apache server on RHEL 6 that uses our active directory for authentication and when we added a new "LocationMatch"
AuthLDAPURL ldap://ad.company.com/DC=ad,DC=company,DC=com?samaccountname?...
1
vote
1
answer
1k
views
500 Error when using Apache Directory Directive
I am trying to restrict access to certain directories to certain IP's.... I have done some research & the below is what I came up with, however it returns a 500 internal server error when I try &...
1
vote
0
answers
682
views
htaccess, mod_rewrite, remove part from URL
I want to access domain.com/api/(.*) instead of domain.com/public/api/(.*)
Directory structure:
domain.com
__folder1
__folder2
__public
____api
______.htaccess2
____afolder1
____afolder2
____index....
0
votes
1
answer
584
views
Apache serve files with NTFS permissions?
I hope I came to the right sub for this question.
Basically here is the scenario:
You have folder name Testfolder which is hosted on Apache. Test folder has files that only certain users on the ...
0
votes
1
answer
125
views
Issue with Apache folder and file permissions
I hope I came to the right sub for this question.
Basically here is the scenario:
You have folder name Testfolder which is hosted on Apache. Test folder has files that only certain users on the ...
0
votes
3
answers
143
views
Apache folder and file permissions
I hope I came to the right site for this question.
Basically here is the scenario
You have folder name "Testfolder" which is hosted on Apache. Test folder has files that only certain users on the ...
0
votes
2
answers
99
views
apache -Directory directive - allow to serve selected pages
This syntax seems to prevent Apache from serving any pages from /var/www or subdirectories.
<Directory "/var/www">
Allow from None
Order allow,deny
</Directory>
I wantthis ...
1
vote
1
answer
366
views
Mod_rewrite pretty url when domain/foo is a directory
Starting with something as simple as:
RewriteRule ^(.*)$ index.php?page=$1
What if I also want the following to work:
RewriteRule ^/foo$ /index.php?page=foo #/foo IS a directory
This seem to work ...
0
votes
1
answer
221
views
How to log access to public_html dir, served by apache?
My college kindly provides web space in form of an public_html directory. As I place content there, could I somehow monitor or log how often a given file is downloaded, and from whom? I think ....
0
votes
1
answer
54
views
Apache: Use requested directory as a parameter
Here's what I'd like to do:
If a user goes to www.example.com/thislocation, I'd like to redirect to a particular script and give it "thislocation" as a parameter.
So if a user navigated to www....
15
votes
4
answers
65k
views
Apache VirtualHost Proxy with a Subdirectory
Currently, we have an IIS server as our primary web server. We are implementing an Apache server in its place, but still need to have the IIS server accessible. Typically, this is a simple thing, ...
1
vote
2
answers
2k
views
Domain to apache, subdomain or subdirectory to tomcat
I set up an Apache2.2 and Tomcat7 Windows Server. Now I would like to use the domain for the apache and a subdomain or a subdirectory for the tomcat webapps. But I don’t know how to configure the ...
2
votes
1
answer
137
views
Apache issue with VirtualHosts
I am setting up a small website in-place on the production server. While we are finalizing all the settings for the final domain we've located it on dev.domain.com, so that our visitors don't see a ...
0
votes
2
answers
105
views
Apache 2.2.15: Allow from CN require auth from Internet
How do I configure httpd.conf for directory /something
to grant access to everybody from 10.0.0.0/8 withOUT password
AND to require everybody else coming from whereever to basic authenticate
The ...
0
votes
1
answer
1k
views
Configure Apache Mass Virtual Hosts to different directories
Our server is running Apache on port 9000 (because IIS is at 80) and we have the following configuration (vhosts.conf) to access our sites:
NameVirtualHost *:9000
UseCanonicalName Off
<...
1
vote
1
answer
262
views
Relative path incorrect in the view layer when hosting a rails3 app in a subdirectory using passenger and apache
I want to host multiple Rails apps on a multiple server using sub-directories.
And have encountered some relative path problems.
I have made a symbolic link to the app's public directory and placed ...
1
vote
1
answer
2k
views
Apache2 NTLM Authentication on specific URL
I have a problem.
I'm using Legrandin's NTLM Authentication Module PyAuthenNTLM2 with my Apache2 server.
It really works well and it was easy to install. I recommend it to everybody.
The ...
2
votes
1
answer
3k
views
Allow access to one directory when all others require authorisation
I have an Apache config that restricts access to to a website, using the following code -
<Directory /var/www/html/website/test/>
AuthName "Dyne Drewett Test Site"
AuthType ...
0
votes
1
answer
226
views
htaccess url rewriting for 1 folder
My .htaccess file works fine for everything expect 1 specific folder. As result, http://www.mydomain.com/administration/index.php unexpectedly goes to 401 error page instead of loading index.php from ...
1
vote
1
answer
1k
views
mod_rewrite redirects for site root and subdirectory from HTTP to SSL
Ok, so I have two sites within the same webroot — the main site (in the root) and an unrelated bunch of files in a subdirectory. We would like both of these sites to force rendering under SSL.
At the ...
2
votes
1
answer
5k
views
How to rewrite URI from root if file exists in folder?
I have a public folder in my document root. I would like to redirect all the files that are not present in document root, but are present in the public folder. (So if the same file is in two places, ...
2
votes
2
answers
2k
views
How to give ownership to root without being root ? (needed for Apache)
I've got a PHP script that creates a folder on my server.
This folder is supposed to be accessed via Apache, and users can view it online.
Now if I create this folder while being root, everything ...
0
votes
2
answers
158
views
Why doesn't Apache see my webmail subdirectory
I recently setup a new website on my linode box, everything is working fine. Except I can't seem to have a webmail subdirectory on my site. Whenever I goto http://mysite.com/webmail the browser takes ...
1
vote
1
answer
708
views
Starting Apache as a NON-Root User on Localhost
I want to start an Apache 2 server on localhost:8080 on an as-needed basis without superuser permissions, with the root directory for web content being /home/user/example/web/directory. I don't want ...
4
votes
2
answers
3k
views
Wrong urls at wp-admin at wordpress with subdirectory and proxy
I am using apache2 and mod-proxy to integrate wordpress blogs into subdirectories of my TLD.
Main site: example.com
Blog1: [http://example.com/blog]
Blog2: [http://example.com/other-blog]
Apach2 ...
1
vote
1
answer
426
views
Apache authenticate group of matching subdirectory
I have a unique scenario here - one that probably has come up in the past. I have a directory that is being protected by an LDAP authentication on my Apache server. In this directory (call it /svn - ...
2
votes
1
answer
4k
views
Apache proxypass trailing slash / directory issue
I have a legacy site for a charity running on an old Apache 1.3 instance, behind Apache 2 running proxypass. When a request comes to example.com, Apache 2 sends it internally to localhost:8080 which ...