Maps different parts of a host file system into the document tree and it used for URL redirection

learn more… | top users | synonyms

1
vote
2answers
367 views

Alias or redirect or rewrite

Roundcubemail and Owncloud folders live on the document root but because of the limitations of the Roundcube OwnCloud Plug-in I have to organise the vhosts as below. $rcmail_config['owncloud_url'] ...
2
votes
1answer
62 views

Can I use Apache variables with mod_alias's `Redirect`, instead of using mod_rewrite?

The Apache HTTP Server's mod_alias provides the Redirect directive which is great for simple redirects, like the following: # Redirect login to https Redirect permanent /login https://www.example.org/...
2
votes
1answer
243 views

Apache: Serving same file on multiple vhosts using regex

I have various virtual hosts (vhosts) setup on an Apache 2.2 server such as: examplea.domain exampleb.domain testsitea.domain testsiteb.domain testsite.domain othersitea.domain On virtual hosts ...
1
vote
1answer
100 views

Conditionally serving files from a directory outside of the document root with Apache2

I have inherited a web application written in PHP. The code is not the best and I want to start using the Symfony framework. It will be a gradual migration through several releases so I need the ...
1
vote
1answer
116 views

What .htaccess directives do I use to securely redirect www_public to www_my_new_public?

I'm moving a site to a new shared host. I want to have a folder of php includes below the live directory and available to public php pages. What directives should I add to the .htaccess file in ...
0
votes
1answer
30 views

Apache location overlapping

I'm trying to create an alias to intercept some url to serve from file system directly with Apache 2.4 In my virtualhost, I have: DocumentRoot /var/www/mysubroot I have a location on "/" in order to ...
0
votes
1answer
57 views

single page redirect 301 not working according to the rules in .htaccess

redirect 301 /Produkte/Supplements http://xxx.xx/Produkte/Inhaltsstoffe/Proteine why does this rule also redirects /Produkte/Supplements/xyz to http://xxx.xx/Produkte/Inhaltsstoffe/Proteine/...
-1
votes
1answer
50 views

Apache Alias directive - not ignore .htaccess files

When using the Alias directive to map a URL to a directory outside the document root, it seems that the .htaccess files in the document root are not applied to those requests. For example, if setting ...
-1
votes
1answer
150 views

symlink to PHP file not handled as PHP

I have PHP5 installed on an Ubuntu 14.04 server and it works fine. I create a file called foo.php anywhere in the document tree and it gets passed to the PHP interpreter just as you'd expect. ...
1
vote
0answers
120 views

Apache 2.2 RedirectMatch behaviour in a Directory context?

What is the URL provided to a RedirectMatch in a Directory context? Does Apache remove the part of the URL up to the current directory? For context, I am trying to write a RedirectMatch in a ...
0
votes
0answers
55 views

mod_alias Redirect does not work

Given the following apache virtual host: <VirtualHost *:80> ServerAdmin dth@domain.com ServerName domain.com ServerAlias *.domain.com Redirect 302 /foo/bar.html http://domain.com/catalog/foo ...
0
votes
0answers
27 views

Public page directory inside authenticated WebDAV directory

I am trying to set up a web server that treats requests to http://my.domain as requests to http://my.domain/dav/pub/http. /dav should require authentication for both read and write, and /dav/pub ...
0
votes
0answers
47 views

Serving a different site from a subfolder with Apache

My client has an existing standard Wordpress install for their existing website. A new application they have had developed is in a completely different framework, which requires a series of Mod ...