免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1513 | 回复: 0
打印 上一主题 下一主题

[Web] 请教虚拟机上apache的配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-21 12:15 |只看该作者 |倒序浏览
本帖最后由 duziteng 于 2011-03-21 23:39 编辑

请教一个问题,
在一个虚拟主机上apache的个人conf配置如下:

=======================================================
<VirtualHost xxx:80>
        ServerName xxx
        ServerAdmin xxx

        #Redirect permanent / https://xxx/
        DocumentRoot /var/www/lab
        ErrorLog /var/log/httpd/lab_error_log
        TransferLog /var/log/httpd/lab_access_log

        ScriptAlias /cgi-bin/ /var/www/lab/cgi-bin/
</VirtualHost>

<VirtualHost xxx>
        ServerName xxx
        ServerAdmin xxx

        <Directory /var/www/lab/>
                AuthType basic
                AuthName "xxx"
                AuthPAM_Enabled on
                Require valid-user

                Options FollowSymLinks
                AllowOverride None
       </Directory>

        DocumentRoot /var/www/lab
        ErrorLog /var/log/httpd/lab_ssl_error_log
        TransferLog /var/log/httpd/lab_ssl_access_log
         
        ScriptAlias /cgi-bin/ /var/www/lab/cgi-bin/
         
        SSLEngine on
        SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
        SSLCertificateKeyFile /usr/share/ssl/private/lab-key.pem
        SSLCertificateFile /usr/share/ssl/certs/lab-cert.pem
        SSLCACertificateFile /usr/share/ssl/geotrust/geotrust-ca-cert.pem
</VirtualHost>

===========================================================================

我把index放在
/var/www/lab/database

cgi放在
/var/www/lab/cgi-bin

index下有表单的action:

     <form name="myform" action="../cgi-bin/query_intronic.cgi" method="post">


现在的问题是,它会自动指向/var/www/cgi-bin,而不是/var/www/lab/cgi-bin,无论怎么改链接路径都没有用,绝对路径也没有用

导致找不到cgi网页

感觉是不是配置里面少了点什么,还是我的代码不对,请教高手们
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP