New answers tagged

0 votes
Accepted

Use ProxyPass only if remote address is in subnet

I got it working using the rewrite engine with the proxy flag: <VirtualHost *:443> RewriteEngine On # Match the subnet RewriteCond expr "-R '192.168.14.0/24'" # Proxy ...
GammaGames's user avatar
0 votes

Apache redirect http://%{HTTP_HOST}:%{SERVER_PORT}/%{REQUEST_URI} to https://%{HTTP_HOST}%{REQUEST_URI}

No need to check the port or if it is SSL, if a requests that is SSL lands here you will get an error since virtualhost won't be able to answer, and virtualhost is already specifying it is port 5555 ...
Daniel Ferradal's user avatar
1 vote

Apache redirect http://%{HTTP_HOST}:%{SERVER_PORT}/%{REQUEST_URI} to https://%{HTTP_HOST}%{REQUEST_URI}

If the Redirect directive is used within a <Location> or <LocationMatch> section with the URL-path omitted, then the URL parameter will be interpreted using expression syntax. This syntax ...
Esa Jokinen's user avatar
-2 votes

Apache redirect http://%{HTTP_HOST}:%{SERVER_PORT}/%{REQUEST_URI} to https://%{HTTP_HOST}%{REQUEST_URI}

It looks like you're trying to redirect HTTP requests on port 5555 to HTTPS without an extra slash between the %{HTTP_HOST} and %{REQUEST_URI}. You can achieve this by modifying your RewriteRule ...
Loni Venn's user avatar
0 votes
Accepted

Apache VHost Redirect /dir/ to subdomain

From comments, vardir is a variable directory name that can contain alphanumeric characters and underscores. The other path segments are static. Since you are wanting to "redirect" (not &...
MrWhite's user avatar
  • 12.8k

Top 50 recent answers are included