Question
Virtual host problem
Hello,
I set the virtual host to point to / var / www / julio yesterday has a WordPress.
When I type juliocesar.design, it’s going to fliplab.com.br
I wish it were for the virtual host I set up, / var / www / julio
See how I set it up:
<VirtualHost *:80>
ServerName juliocesar.design
ServerAlias www.juliocesar.design
ServerAdmin webmaster@localhost
DocumentRoot /var/www/julio
<Directory /var/www/julio/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/julio.log
CustomLog ${APACHE_LOG_DIR}/acces_julio.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =juliocesar.design [OR]
RewriteCond %{SERVER_NAME} =www.juliocesar.design
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Can anyone help?
Tks!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×