By mikhaelipcn
Hi! i made a doplet to deploy my wordpress applications and i create a virtual host with apache2. So, this is my .conf at /etc/apache2/sites-available/revistaestilooff.com.br.conf :
# Added to mitigate CVE-2017-8295 vulnerability
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>
But, when i type the domain in to the browser, i see the default page at /var/www/html. I really dont know what i miss ):
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!
Hello, @mikhaelipcn
You can check this two tutorials:
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04
and also:
One thing to keep in mind is that /etc/apache2/sites-available/
directory where per-site virtual hosts can be stored. Apache will not use the configuration files found in this directory unless they are linked to the sites-enabled directory. Typically, all server block configuration is done in this directory, and then enabled by linking to the other directory with the a2ensite command.
Basically you can create a symlinks like this:
ln -s /etc/apache2/sites-available/domain.com /etc/apache2/sites-enabled/domain.com
Hope this helps.
Regards, Alex
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.