We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
website virtualhost listen to all ip
-
- Posts: 1
- Joined: Tue Jun 09, 2015 10:51 am
website virtualhost listen to all ip
Hello,
I am having 2 IP in my server, each of them for different network, I want my sites to listen virtualhost to all IP's available in the server. how I can do this in the vestacp?
I am having 2 IP in my server, each of them for different network, I want my sites to listen virtualhost to all IP's available in the server. how I can do this in the vestacp?
Re: website virtualhost listen to all ip
Edit your configs and try to use wildcard
/home/admin/conf/web/nginx.conf
/home/admin/conf/web/apache2.conf
If it'll work fine for you, then for new domains you can edit templates
/usr/local/vesta/data/templates/web/nginx/
and
/usr/local/vesta/data/templates/web/apache2/
/home/admin/conf/web/nginx.conf
Code: Select all
listen *:80;
Code: Select all
<VirtualHost *:8080>
/usr/local/vesta/data/templates/web/nginx/
and
/usr/local/vesta/data/templates/web/apache2/
Code: Select all
before:
%ip%:%web_port%
then:
*:%web_port%
Re: website virtualhost listen to all ip
Hi..
I have Debian 7 with Vestacp..
In my first login to vesta admin... add my first domain.. (radio-salonikios.gr)
After add a user and login with this user and add a domain iwmn.net.
(this domain i want to see via http://www.iwmn.net with public ip and http://www.iwmn with private ip)
I install pptp server...and my debian have 10.204.0.1 as a private ip.
Now... i edit virtual host in first line say 46.102.246.225:8080 i changr the 46.102.246.225 with " * "
After this.. if i go to my browser and go to http://www.iwmn.net..the browser get the site radio-salonikios.gr
After i restore my back up in account iwmn and fix all...
NOW,i want my apache listen to ip 46.102.146.225 and 10.204.0.1 . .
(if somebody want to see http://www.iwmn.net go to 46.102.246.225 if want http://www.iwmn go to 10.204.0.1 over VPN--quagga routing) ..
How??
(if add to account iwmn a second domain "www.iwmn" and connect with ip 10.204.0.1...its work..but i get other site..default of vedta cp)
I have Debian 7 with Vestacp..
In my first login to vesta admin... add my first domain.. (radio-salonikios.gr)
After add a user and login with this user and add a domain iwmn.net.
(this domain i want to see via http://www.iwmn.net with public ip and http://www.iwmn with private ip)
I install pptp server...and my debian have 10.204.0.1 as a private ip.
Now... i edit virtual host in first line say 46.102.246.225:8080 i changr the 46.102.246.225 with " * "
After this.. if i go to my browser and go to http://www.iwmn.net..the browser get the site radio-salonikios.gr
After i restore my back up in account iwmn and fix all...
NOW,i want my apache listen to ip 46.102.146.225 and 10.204.0.1 . .
(if somebody want to see http://www.iwmn.net go to 46.102.246.225 if want http://www.iwmn go to 10.204.0.1 over VPN--quagga routing) ..
How??
(if add to account iwmn a second domain "www.iwmn" and connect with ip 10.204.0.1...its work..but i get other site..default of vedta cp)
Re: website virtualhost listen to all ip
Pretty strange task... may be you can do it with dns when you connect via vpn?