Apache vhost - How to do? [closed]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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.
server apache2 webserver
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
add a comment |Â
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.
server apache2 webserver
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
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
add a comment |Â
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.
server apache2 webserver
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.
server apache2 webserver
edited May 2 at 19:45
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
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
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
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
add a comment |Â
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
add a comment |Â
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>
add a comment |Â
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.
add a comment |Â
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>
add a comment |Â
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>
add a comment |Â
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>
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>
answered May 4 at 6:40
Sandoz
2415
2415
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Apr 30 at 15:46
ultimatex
313119
313119
add a comment |Â
add a comment |Â
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