Hi,
A few things to note:
- Any
red text is in place of my
real site details.
- All my website files are in the folder: /home/
user_name/public/
mysite.com/public
- My server was set up using Linodes user guides.
- I'm a beginner
I followed Linode's guide for 'Adding DNS Records' and it's been over 24 hours and my site is blank.
I contacted
http://www.namecheap.com (my domain registrar) and everything looks fine from their end. Linode told me
Quote:
It looks like your DNS records are propagated and pointing to the right IP address
They suggested I make sure vhosts are correctly set up and sent me here for extra help.
I'm a beginner, so I assume vhosts is my virtual hosts, right? Here's my virtual hosts file by typing:
Quote:
sudo nano /etc/apache2/sites-available/mysite.com
File contents:
Quote:
# domain: mysite.com
# public: /home/user_name/public/mysite.com/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin webmaster@mysite.com
ServerName www.mysite.com
ServerAlias mysite.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/user_name/public/mysite.com/public
# Log file locations
LogLevel warn
ErrorLog /home/user_name/public/mysite.com/log/error.log
CustomLog /home/user_name/public/mysite.com/log/access.log comb$
</VirtualHost>
I created the above file following Linode's guides, so I think it's setup ok, maybe?
Then I (re)create a symbolic link to my public directory
Quote:
sudo a2ensite mysite.com
Then I restart apache
Quote:
sudo service apache2 restart
I still can't acces my site
Anyone got any ideas I could try?