0
votes
1answer
23 views

Apache - how to use a rewrite rule per vhost?

I have set up a vHost as follows: <VirtualHost *:80> ServerAdmin webmaster@example.com ServerName example.com ServerAlias www.example.com DirectoryIndex index.php DocumentRoot ...
3
votes
4answers
547 views

Nginx rewrite rule “^/([a-z0-9]{32})\.png$” not working (used to work on Apache)

I have these rewrite rules (I tried both with no avail): location ~* "^/([a-z0-9]{32})\.png$" { rewrite ^ /index.php?page=log&id=$1 last; } and location ~* ...
0
votes
1answer
70 views

What redirect rule should I use to replace this 301 redirect, in Apache?

I am using this directive to redirect to HTTPS: <VirtualHost *:80> ServerName foo.bananas.net Redirect 301 / https://foo.bananas.net ...
0
votes
1answer
84 views

Apache config to direct all request to one virtual host, except request on direct IP or specified

I would like to know what I have to add to the apache.conf file to achieve the following: For all requests for which no Virtualhost is specified, they have to go to one of the Virtualhosts that I do ...
1
vote
1answer
340 views

Apache subdomain redirect with subdomain representing parameter in URL

I am looking at updating my htaccess file to control a subdomain being created. I am having issues with a few things. Firstly I am setting up the domain where http://m.domain.com/ and that is ...
0
votes
2answers
200 views

How do I simplify my URLs with Apache (or DNS)?

I'm running Apache 2.2 with WHM / cPanel. Let me know what other info you need to answer this question. I want to set up some kind of forwarding/redirect so that the following occurs: ...
1
vote
4answers
255 views

using vhosts internally without a DNS

I need to serve a large number of websites on the same machine. I'll need to be able to add and remove websites dynamically. Internally, the web server needs to think that the request arrived from a ...