在虚拟主机上为日志和cgi文件创建目录

时间:2013-07-17 11:44:29

标签: apache logging xampp virtualhost directory

我必须在我托管的每个站点中为日志和cgi文件创建目录。当我使用以下提供的httpd-vhosts.conf文件代码运行XAMPP的Apache服务器时,我收到消息:

1:23:14 PM  [Apache]    Error: Apache shutdown unexpectedly.
1:23:14 PM  [Apache]    This may be due to a blocked port, missing dependencies, 
1:23:14 PM  [Apache]    improper privileges, a crash, or a shutdown by another method.
1:23:14 PM  [Apache]    Press the Logs button to view error logs and check
1:23:14 PM  [Apache]    the Windows Event Viewer for more clues
1:23:14 PM  [Apache]    If you need more help, copy and post this
1:23:14 PM  [Apache]    entire log window on the forums

这是我的httpd-vhosts.conf文件看起来

NameVirtualHost *:80

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/sitea"
    ServerName sitea.com
    ServerAlias www.sitea.com
    <Directory "C:/xampp/htdocs/sitea/logs">
    Options Indexes IncludesNOEXEC FollowSymLinks
    allow from all
    </Directory>
    <Directory "C:/xampp/htdocs/sitea/cgi-bin">
    Options Indexes IncludesNOEXEC FollowSymLinks
    allow from all
    </Directory>
    <Directory "C:/xampp/htdocs/sitea/html">
    Options Indexes IncludesNOEXEC FollowSymLinks
    allow from all
    </Directory>
    ErrorLog "C:/xampp/htdocs/sitea/logs/error_log"
    CustomLog "C:/xampp/htdocs/cms/logs/access_log" combined
    ScriptAlias "/cgi-bin/" "C:/xampp/htdocs/sitea/cgi-bin/"
</VirtualHost>

0 个答案:

没有答案