我正在尝试在我的vps上达到我的dimitri-dumont.fr域名的峰值,但是,它不起作用。
我当前正在使用apache2,我的vps在ubuntu上。
sudo chown -R dimitri /home/dimitri/html
sudo cmod -R 755 /home/dimitri/html
<VirtualHost *:80>
ServerAdmin contact@dimitri-dumont.fr
ServerName dimitri-dumont.fr
ServerAlias www.dimitri-dumont.fr
DocumentRoot /home/dimitri/html
#Redirect permanent / https://www.dimitri-dumont.fr
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /home/dimitri/html>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride None
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName dimitri-dumont.fr
ServerAlias www.dimitri-dumont.fr
ServerAdmin contact@imitri-dumont.fr
DocumentRoot /home/dimitri/html
<Directory /home/dimitri/html>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride none
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}access.log combined
</VirtualHost>
在那之后,我做了:
sudo a2ensite dimitri-dumont.fr.conf
sudo service apache2 restart