Hello,
I want to have two websites on the same server. First domain would be tekky.site and a subdomain as faye.tekky.site
I have tried to follow the tutorial
And as a result, faye.tekky.site work! but not tekky.site
i can’t figure out the problem. Here’s the tekky.site configuration file in apache folders:
<VirtualHost *:80>
ServerAdmin admin@tekky.site
ServerName tekky.site
ServerAlias www.tekky.site
DocumentRoot /var/www/tekky.site/public_html
<Directory /var/www/tekky.site/public_html>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
I can see that both of your sites are up and running now. Would you mind sharing how did you sort out the issue?
Usually, in such cases, I recommend the following:
Make sure that the permissions of both sites are correct so that the Apache www-data user has access to read the directories
Check the Apache error log for more information:
tail -100 /var/log/apache2/error.log
Best,
Bobby
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.