Hey, I try to set up my ubuntu 14.04 server.
For a while I had my second domain forwarding to my first one, but now I want to separate them. Which works great as long as I add the www. to the site. As long as I only write example002.com (without the www) it forwards to a total different link expample001.com. Both located at my server.
I checked my settings at the domain shop and each of the DNS forwarding settings only lead to my IP address. There are no other settings in my www-forwarding settings either.
I made a .conf file for each of the domains with each their different information leading to each their folder at the server.
Each .conf file looks pretty much like this except with different pathways of course:
<VirtualHost *:80
ServerAdmin webmaster@example.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/html/example.com/public_html/
ErrorLog /var/www/html/example.com/logs/error.log
CustomLog /var/www/html/example.com/logs/access.log combined
<Directory /path/to/public/website/>
Require all granted
</Directory>
</VirtualHost>
I should probably also ask about the "<Directory" line which path does not contain any files at my server. But which looks something like "/home/web/website" I only have my website files located in the DocumentRoot folder. Why are there two paths to public website in this file?
Any help to solve any of this is very much appreciated!
Thanks!
- - , .
برچسب:
نویسنده: استخدام کار