By default when I was going to my external ip or no-ip domain I was left on the page of my internet router until I set up apache for my sites and open port 80 in the router...
My question is:
How can I configure a redirect or redirect like to my router with local ip 192.168.1.254, in apache in my server machine 192.168.1.104 ??
My objetive is create a subdomain in no-ip like router.example.com and when I access it appears the login page of my router (ip is 192.168.1.254 in my home)
I tried this:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName router.example.com
Redirect permanent / http://192.168.1.254
ErrorLog ${APACHE_LOG_DIR}/router-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/router-access.log combined
</VirtualHost>
but not working from exterior...
(If I am reading this correctly (and I may not be), your router is passing all traffic on port 80 forward and you can no longer hit your router's page from the outside, as all traffic 'skips' forward to your Apache server.
Based on the second half of your question I think you're looking for mod_proxy, not rewrite. Proxy will let you bounce the traffic back towards your router and serve the router control page that you intend to.
I don't have any experience with mod_proxy (I tend to go for nginx in such cases), however a cursory look at the documentation would suggest that this configuration would work:
It may require some tweaking.