multisite host in apache on ubuntu14.04
platform:
os:ubuntu14.04 server x64
weserver: Apache/2.4.10 (Ubuntu) & PHP Version 5.5.12-2ubuntu4.1
i have web sites site1(html) & site2(php) i want access both site via same IP.
like www.<ipaddress>/site1/index.html & www.<ipaddress>/site2/index.php
below my configuration:
root dir: /var/www/websites/site1/index.html
root dir: /var/www/websites/site2/index.php
---------------------------------
access given to root dir: /var/www/websites/
----\site-available\site1.config
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/websites/site1/
</VirtualHost>
----\site-available\site2.config
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/websites/site2/
</VirtualHost>
>a2ensite site1.config
>a2ensite site2.config
error: could not web page on server
|