Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Server Configuration _ Problem with config of multiple websites ( Ubuntu 16.04, Webmin)

Posted by: sanoj96 Aug 18 2016, 12:36 PM

Hi,

I have some problems setting up multiple websites on my server.
Both of the Urls are working, but both sends me to the same "php" file.


Apache settings:

(main website)
DocumentRoot /var/www/website.com
ServerName website.com
ServerAlias *.website.com, website.com
<Directory "/var/www/website.com">
allow from all
Options +Indexes
</Directory>

(sev website)
DocumentRoot /var/www/website2.com
ServerName website2.com
ServerAlias *.website2.com, website2.com
<Directory /var/www/website2.com>
allow from all
Options +Indexes
</Directory>

if you need any other information, pm me.

DNS setting is setup like this
https://www.serverpronto.com/kb/page.php?id=Setting+Up+DNS+Using+Webmin

Posted by: sanoj96 Aug 22 2016, 09:58 AM

Fixed this! installed Webmin + Virtualmin.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)