Maison  >  Questions et réponses  >  le corps du texte

web - ubuntu下apache2.4配置多站点问题

在apache2.4下配置了如下代码文件
但是apache报错
(另外网上教程说绑定host文件,我并不知道这是什么东西。。)

配置部分代码如下
apache2.conf
Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
NameVirtualHost smilencer.me<VirtualHost 138.68.12.160:80>

ServerName www.smilencer.me
DocumentRoot "/var/www/wordpress"
 <Directory "/var/www/wordpress">
 Options FollowSymLinks 
 AllowOverride All 
 Require all granted 

</Directory>
</VirtualHost>
<VirtualHost 138.68.12.160:80>

ServerName www.whatare.me
DocumentRoot "/var/www/What_Are_You_Doing/map"

<Directory "/var/www/What_Are_You_Doing/map">

 Options FollowSymLinks 
 AllowOverride All 
 Require all granted 

</Directory>
</VirtualHost>

NameVirtualHost whatare.me

mytest.conf

伊谢尔伦伊谢尔伦2734 Il y a quelques jours594

répondre à tous(1)je répondrai

  • 伊谢尔伦

    伊谢尔伦2017-04-24 09:15:27

    Voici une référence pour vous, vous pouvez la remplacer par votre propre nom de domaine[YOUR_DOMAIN_NAME]

    <VirtualHost *:80>
        ServerAdmin admin@[YOUR_DOMAIN_NAME].com
        DocumentRoot "/var/www/dev/doc"
        ServerName [YOUR_DOMAIN_NAME].com
        ServerAlias [YOUR_DOMAIN_NAME].com
        ErrorLog logs/[YOUR_DOMAIN_NAME].com-error_log
    </VirtualHost>

    répondre
    0
  • Annulerrépondre