[–] jlg23 10y ago ↗ alternatively, in just 1 second:0) enable mass vhosting in your apache[1] - you only do this once1) cp -R ~/webprojecttemplate /www/vhosts/mynewvhost2) add mynewvhost to /etc/hostsdone.[1] https://httpd.apache.org/docs/2.4/vhosts/mass.html [–] sahil2305dua 10y ago ↗ 5 seconds is over-estimated. As you can see (if you read the post), you just have to run one command for any new virtual host and no need to edit any conf file or hosts file ever.But yeah, useful link. Thanks for that :)
[–] sahil2305dua 10y ago ↗ 5 seconds is over-estimated. As you can see (if you read the post), you just have to run one command for any new virtual host and no need to edit any conf file or hosts file ever.But yeah, useful link. Thanks for that :)
2 comments
[ 2.1 ms ] story [ 10.4 ms ] thread0) enable mass vhosting in your apache[1] - you only do this once
1) cp -R ~/webprojecttemplate /www/vhosts/mynewvhost
2) add mynewvhost to /etc/hosts
done.
[1] https://httpd.apache.org/docs/2.4/vhosts/mass.html
But yeah, useful link. Thanks for that :)