Tag Info

Hot answers tagged

3

Ok, solution by myself: Add file with pcre: virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf, pcre:/etc/postfix/virtual_alias_maps.cf In file: /^admin@(.*)/ admin@$1,webmaster@$1 Reload, done.


2

It has been 3 years since this question was asked and a lot has changed. This answer is to help anyone like me. The current version of nginx allows to create multiple sub filter rules under one location directive. Like so location / { proxy_pass http://original-domain.com; proxy_set_header Accept-Encoding ""; proxy_set_header original-domain.com; ...


2

You should use another server block for the redirect. server { server_name *.domain.tld; listen 100.10.10.1; location /personal { rewrite ^ http://domain.tld/personal permanent; } } And then you should remove the location block from the other server block, and remove *.domain.tld from the server_name directive.


1

RewriteRule ^(cp_contactformtoemail_captcha.*image.jpg) /INDEX.PHP/$1


1

The rewrite directive regex will match the normalized request URI while the server_name directive will match the domain name. The last flag will force an internal redirect and that's not what you want. So you are doing it the wrong way. Use this instead : server { listen 80; server_name "~^(?<subdomain>[^.]*)\.?cervo02.com$"; return 301 ...


1

One issue here is at least that you are using the internal keyword inside the location. This means that it will match only requests coming from inside nginx, for example from other location blocks. You should remove that keyword. Your regexes need also other fixes. Try this location block: location ~ \.(gif|jpg|png)$ { rewrite ...


1

I would approach this by making a script that makes symlinks to all those files to the directory where you want the files to be visible. Then you could use something like lsyncd to monitor the directories and automatically generate symlinks whenever new files appear or existing files change.



Only top voted, non community-wiki answers of a minimum length are eligible