LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Setup Apache so Webmin can be accessed like abc.com/webmin instead of abc.com:10000 (https://www.linuxquestions.org/questions/linux-software-2/setup-apache-so-webmin-can-be-accessed-like-abc-com-webmin-instead-of-abc-com-10000-a-799874/)

rtoney5 04-04-2010 12:05 AM

Setup Apache so Webmin can be accessed like abc.com/webmin instead of abc.com:10000
 
Hello:
I'm running Ubuntu 9.10 and was trying to figure out how to setup Apache so that I can view my Webmin outside of my network like abc.com/webmin instead of abc.com:10000. I tried the webmin.apache.html instructions, but ended up reinstalling webmin because i was no longer able to sign into it. I opened up port 10000 on my router and opened the port on Firestarter as well.
Any help showing how a virtual server can be setup would be helpful.
Thanks.

{BBI}Nexus{BBI} 04-04-2010 08:06 AM

As long as you have the correct ports open it should simply be a case of typing: https://<web address or ip>:<port>

It would be more secure not to expose port 10000 to the internet. Instead redirect the incoming connection to the correct port via your router/firewall.

rtoney5 04-04-2010 11:48 PM

Thanks, but perhaps I didn't explain what I wanted to do more clearly. Instead of typing abc.com:10000 I would like to type in abc.com/webmin from outside my network. How can I configure Apache to do this.
I'm sure it's something with Virtual Hosts.
Thanks,

scheidel21 04-05-2010 08:15 AM

I don't know about virtual hosts off hand but I imagine you can set one up that says there is a web server running on port 10000, and the virtual name is webmin.abc.com or whatever. But you might be best served looking that up by looking up on google for apache virtual hosts. What the other poster I think was referrign to was redirecting the port on your router so that webmin.abc.com:80 the http port or more accurately webmin.abc.com:443 gets redirected to internalserver:10000 most routers can do something similar to this. Port forwarding is very common.

bathory 04-05-2010 08:46 AM

Hi,

You can use the Redirect directive:
Code:

Redirect permanent /webmin http://abc.com:10000
but as others said, it's better not to expose the webmin pages to the internet

Regards

rtoney5 04-08-2010 12:14 PM

Hey Thanks Guys. But what configuration /path/file would I need to put the statement below? I'd rather try to put it into a config file somewhere so i can change it later if needed. Just wasn't sure where exactly to put the statement...:

Redirect permanent /webmin http://abc.com:10000
Thanks Again

bathory 04-08-2010 12:33 PM

For ubuntu you need to add the Redirect directive in /etc/apache2/apache2.conf
After that you need to restart apache

Regards


All times are GMT -5. The time now is 03:11 AM.