13.10으로 업데이트 한 후 Apache 가상 호스트가 더 이상 작동하지 않음 13.10으로 업데이트했으며 이전에 완벽하게 작동

나는 오늘 kubuntu를 13.10으로 업데이트했으며 이전에 완벽하게 작동 한 가상 호스트가 더 이상 작동하지 않습니다.

s2ensitea2dissite명령도 파일이 사이트-aviable에와 있었다 “사이트 XXXXXX하지 존재 않습니다”주장 사이트 지원 내가 다시 수 있도록 다음 사이트 사용에서 제거하고 tryed,하지만 여전히 아파치 주장 그들은 존재하지 않을 것입니다.

여기 내 가상 호스트 중 하나가 있습니다. 그들은 기본적으로 모두 이와 같습니다.

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName expsite.local

    DocumentRoot /var/www/expsite/htdocs
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/expsite/htdocs/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride FileInfo
        Order allow,deny
        allow from all
    </Directory>

#   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
#   <Directory "/usr/lib/cgi-bin">
#       AllowOverride None
#       Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
#       Order allow,deny
#       Allow from all
#   </Directory>

        CustomLog /var/www/expsite/logs/access.log combined
        ErrorLog /var/www/expsite/logs/error.log
        LogLevel warn

#    Alias /doc/ "/usr/share/doc/"
#    <Directory "/usr/share/doc/">
#        Options Indexes MultiViews FollowSymLinks
#        AllowOverride None
#        Order deny,allow
#        Deny from all
#        Allow from 127.0.0.0/255.0.0.0 ::1/128
#    </Directory>

</VirtualHost>

000-default가 작동 중이며 활성화 및 비활성화 할 수 있습니다.



답변

Ubuntu 13.10 및 변형은 Apache 2.4로 이동했으며 Apache 2.4 .conf는 기본적으로 활성화 된 가상 호스트 구성 파일을 원합니다 . 여기를 봐:

http://lyemium.com/content/virtual-host-issues-when-upgrading-apache-22-24

방금 vhost 설정 파일의 이름을 변경 .conf하고 모든 것이 작동했습니다!


답변