server - Apache Virtual Hosts setting IP, subfolders and domain seperately -
maybe question stupid, have following problem: using vps (digitalocean) ip , had few pages being acessible alias this: 123.321.456.654/page1, 123.321.456.654/page2, etc.
now need host website domain domainhoster , still want use directories via ip.
i found tutorials, how set multiple domains, not how leave ip separate directory. @ moment have .conf file in sites-enabled directory titled domain name. domain linked sub-folder /var/www/officialpage.
now if want domain linked properly, have disable default-000.conf file, loose other aliases.
how can setup domain treated alias, , make ip point page? possible @ all?
thanks reading
here .conf files
domain.com.conf
<virtualhost *:80> servername domain.com serveralias www.domain.com serveradmin webmaster@localhost documentroot /var/www/page4 <directory /var/www/raum4> options indexes followsymlinks multiviews allowoverride none order allow,deny allow </directory> errorlog ${apache_log_dir}/error.log customlog ${apache_log_dir}/access.log combined </virtualhost>
and 000-default.conf
<virtualhost *:80> serveradmin webmaster@localhost documentroot /var/www/html alias /page1 /var/www/p1 alias /page2 /var/www/p2 alias /page3 /var/www/p3 <directory /var/www/> options indexes followsymlinks multiviews allowoverride none order allow,deny allow </directory> errorlog ${apache_log_dir}/error.log customlog ${apache_log_dir}/access.log combined </virtualhost>
2 days later works should.. seems provider needs more 6 hours he's claiming set everything. still thank you!
Comments
Post a Comment