Domain pointing to wrong file/folder
Im pretty new to serverside and just made my first droplet, so please forgive me if I've missed something obvious here.
My problem is that when i type domain into browser it doesent go to proper (var/www/mydomain/public_html) index.html file and it just goes to index of /. I can see the right folder but and with clicking the right index.html file appears on the browser.
So far i have made theese things:
- setup dns settings
- put website folder var/www
- removed default .conf file and added mydomain.conf
- symlink with putty for /etc/apache2/sites-available
- restarted apache server
Conf file looks like this:
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/mydomain/public_html ServerName mydomain.com ServerAlias www.mydomain.com ErrorLog /var/www/suomenyachtcenter/logs/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/www/suomenyachtcenter/logs/access.log combined </VirtualHost>
Ive tried to find answer for question from this nice community but couldnt find similiar thread so would be really happy for some help! Thank you for advance :)