New answers tagged

0

You can do something like the following at the top of your .htaccess file using mod_rewrite (although this will work just as well directly in the server config): RewriteEngine On RewriteCond %{HTTP_HOST} !^example\.com RewriteCond %{HTTP_HOST} ^(?:www\.)?([^.]+) [NC] RewriteRule ^ https://example.com/%1%{REQUEST_URI} [R=302,L] This would redirect <...


0

Redirect port 514 to 5000 and make it work on local machine If you are creating the iptables rule on your syslog server use below command: iptables -t nat -A OUTPUT -o lo -p tcp --dport 514 -j REDIRECT --to-port 5000 or iptables -A PREROUTING -t nat -i eth0<Incoming-interface> -p tcp --dport 514 -j REDIRECT --to-port 5000 redirect an incoming ...


1

Answer created from @Patrick-Mevzek's helpful comments: NO you can't do what you describe just with the DNS, which maps names (not URLs) to IP addresses here. You need the DNS to point the hostname to a webserver and then you need to configure that webserver to reply for this hostname and do a proxy or redirect to the real URL. "Can I for example point ...


Top 50 recent answers are included