Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've set up the virtual host for under Apache.

config is

<VirtualHost xxx.xxx.xxx.xxx:80>
      DocumentRoot /var/www/abc

But my website runs on 8090

I should get the website when somebody types the mydomain.com

and browser should NOT show maydomain.com:8090

How can this be achieved?

share|improve this question

1 Answer 1

If you get your website using only http://mydomain.com/, then by definition your web server has to serve it on port 80. If you can get your website only via port 8090, then that 8090 will have to be in the URL. There is no way around it.

You could in theory arrange for port forwardings or proxying or something similar, but at the end that means that something will then listen on port 80 and will have to forward that traffic. The web browser will always connect to port 80 if no other port is specified in the URL.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.