Apache vhost - How to do? [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
-2
down vote

favorite












I have no idea how vhost works.



But what I want to accomplish is that my webmin url becomes conf.mydomain.se instead of conf.mydomain.se:10000



I have other urls to this server but I want to just ignore that and solve this and maybe I can learn how to the rest by doing that :)



 <VirtualHost conf.mydomain.se:8001>
ServerName 185.xx.xx.25
</VirtualHost>


At the moment my conf looks like the above.



If I get a working example of how to solve my problem then I might understand this.







share|improve this question














closed as off-topic by David Foerster, waltinator, Amias, solsTiCe, Eric Carvalho May 8 at 19:49


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – David Foerster, waltinator
If this question can be reworded to fit the rules in the help center, please edit the question.








  • 1




    this is about the apache webserver and makes no mention of ubuntu or using ubuntu packages of the webserver
    – Amias
    May 8 at 10:44














up vote
-2
down vote

favorite












I have no idea how vhost works.



But what I want to accomplish is that my webmin url becomes conf.mydomain.se instead of conf.mydomain.se:10000



I have other urls to this server but I want to just ignore that and solve this and maybe I can learn how to the rest by doing that :)



 <VirtualHost conf.mydomain.se:8001>
ServerName 185.xx.xx.25
</VirtualHost>


At the moment my conf looks like the above.



If I get a working example of how to solve my problem then I might understand this.







share|improve this question














closed as off-topic by David Foerster, waltinator, Amias, solsTiCe, Eric Carvalho May 8 at 19:49


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – David Foerster, waltinator
If this question can be reworded to fit the rules in the help center, please edit the question.








  • 1




    this is about the apache webserver and makes no mention of ubuntu or using ubuntu packages of the webserver
    – Amias
    May 8 at 10:44












up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











I have no idea how vhost works.



But what I want to accomplish is that my webmin url becomes conf.mydomain.se instead of conf.mydomain.se:10000



I have other urls to this server but I want to just ignore that and solve this and maybe I can learn how to the rest by doing that :)



 <VirtualHost conf.mydomain.se:8001>
ServerName 185.xx.xx.25
</VirtualHost>


At the moment my conf looks like the above.



If I get a working example of how to solve my problem then I might understand this.







share|improve this question














I have no idea how vhost works.



But what I want to accomplish is that my webmin url becomes conf.mydomain.se instead of conf.mydomain.se:10000



I have other urls to this server but I want to just ignore that and solve this and maybe I can learn how to the rest by doing that :)



 <VirtualHost conf.mydomain.se:8001>
ServerName 185.xx.xx.25
</VirtualHost>


At the moment my conf looks like the above.



If I get a working example of how to solve my problem then I might understand this.









share|improve this question













share|improve this question




share|improve this question








edited May 2 at 19:45









Zanna

47.9k13119227




47.9k13119227










asked Apr 30 at 14:51









Sandoz

2415




2415




closed as off-topic by David Foerster, waltinator, Amias, solsTiCe, Eric Carvalho May 8 at 19:49


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – David Foerster, waltinator
If this question can be reworded to fit the rules in the help center, please edit the question.




closed as off-topic by David Foerster, waltinator, Amias, solsTiCe, Eric Carvalho May 8 at 19:49


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This describes a problem that can't be reproduced, that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – David Foerster, waltinator
If this question can be reworded to fit the rules in the help center, please edit the question.







  • 1




    this is about the apache webserver and makes no mention of ubuntu or using ubuntu packages of the webserver
    – Amias
    May 8 at 10:44












  • 1




    this is about the apache webserver and makes no mention of ubuntu or using ubuntu packages of the webserver
    – Amias
    May 8 at 10:44







1




1




this is about the apache webserver and makes no mention of ubuntu or using ubuntu packages of the webserver
– Amias
May 8 at 10:44




this is about the apache webserver and makes no mention of ubuntu or using ubuntu packages of the webserver
– Amias
May 8 at 10:44










2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










Okay so i found the problem after a while.
It was both what i wrote here but mostly not disable default conf



The working one is belov



<VirtualHost _default_>

ServerName conf.mydomain.se
ProxyPass / http://localhost:8001/
ProxyPassReverse / http://localhost:8001/

</VirtualHost>





share|improve this answer



























    up vote
    0
    down vote













    In conf.mydomain.se:10000 10000 says the port which is running your server. Default port is for Http is 80 . When you type url in browser it automatically request 80 port in the server (for https default port is 443). You just need to add 80 instead of 8001 in your current configuration. Make sure 80 port is allowed by firewall if didn't work.
    Then just typing conf.mydomain.se will work.






    share|improve this answer



























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote



      accepted










      Okay so i found the problem after a while.
      It was both what i wrote here but mostly not disable default conf



      The working one is belov



      <VirtualHost _default_>

      ServerName conf.mydomain.se
      ProxyPass / http://localhost:8001/
      ProxyPassReverse / http://localhost:8001/

      </VirtualHost>





      share|improve this answer
























        up vote
        1
        down vote



        accepted










        Okay so i found the problem after a while.
        It was both what i wrote here but mostly not disable default conf



        The working one is belov



        <VirtualHost _default_>

        ServerName conf.mydomain.se
        ProxyPass / http://localhost:8001/
        ProxyPassReverse / http://localhost:8001/

        </VirtualHost>





        share|improve this answer






















          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          Okay so i found the problem after a while.
          It was both what i wrote here but mostly not disable default conf



          The working one is belov



          <VirtualHost _default_>

          ServerName conf.mydomain.se
          ProxyPass / http://localhost:8001/
          ProxyPassReverse / http://localhost:8001/

          </VirtualHost>





          share|improve this answer












          Okay so i found the problem after a while.
          It was both what i wrote here but mostly not disable default conf



          The working one is belov



          <VirtualHost _default_>

          ServerName conf.mydomain.se
          ProxyPass / http://localhost:8001/
          ProxyPassReverse / http://localhost:8001/

          </VirtualHost>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 4 at 6:40









          Sandoz

          2415




          2415






















              up vote
              0
              down vote













              In conf.mydomain.se:10000 10000 says the port which is running your server. Default port is for Http is 80 . When you type url in browser it automatically request 80 port in the server (for https default port is 443). You just need to add 80 instead of 8001 in your current configuration. Make sure 80 port is allowed by firewall if didn't work.
              Then just typing conf.mydomain.se will work.






              share|improve this answer
























                up vote
                0
                down vote













                In conf.mydomain.se:10000 10000 says the port which is running your server. Default port is for Http is 80 . When you type url in browser it automatically request 80 port in the server (for https default port is 443). You just need to add 80 instead of 8001 in your current configuration. Make sure 80 port is allowed by firewall if didn't work.
                Then just typing conf.mydomain.se will work.






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  In conf.mydomain.se:10000 10000 says the port which is running your server. Default port is for Http is 80 . When you type url in browser it automatically request 80 port in the server (for https default port is 443). You just need to add 80 instead of 8001 in your current configuration. Make sure 80 port is allowed by firewall if didn't work.
                  Then just typing conf.mydomain.se will work.






                  share|improve this answer












                  In conf.mydomain.se:10000 10000 says the port which is running your server. Default port is for Http is 80 . When you type url in browser it automatically request 80 port in the server (for https default port is 443). You just need to add 80 instead of 8001 in your current configuration. Make sure 80 port is allowed by firewall if didn't work.
                  Then just typing conf.mydomain.se will work.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 30 at 15:46









                  ultimatex

                  313119




                  313119












                      Popular posts from this blog

                      pylint3 and pip3 broken

                      Missing snmpget and snmpwalk

                      How to enroll fingerprints to Ubuntu 17.10 with VFS491