By mikhaelipcn
I`m trying to setup a doplet for wordpress apps. So, i create a virtual host for my site which has this configurations:
UseCanonicalName On
<VirtualHost *:80>
ServerAdmin mikhaelipcn@gmail.com
ServerName revistaestilooff.com.br
ServerAlias www.revistaestilooff.com.br
DocumentRoot /var/www/estilo_off/
<Directory /var/www/estilo_off/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
After add this config with a2ssite and disable the 000-default with a2dssiste, i restar the apache2 but when i type the domain on browser, i`m getting the default page at /var/www/html
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 @mikhaelipcn,
What happens if you run an Apache config test with:
sudo apachectl-t
Also the DocumentRoot should be specified without a trailing slash:
DocumentRoot /var/www/estilo_off
<Directory /var/www/estilo_off>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
After that change, try to restart Apache and test the site again.
Let me know how it goes! Regards, Bobby
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.