0

我有一个脚本为我安装了这一切,但我正在尝试将它配置为我喜欢的方式。

问题是它在 web 目录的根目录中执行我希望它到目录中的特定文件夹...我将如何处理...

这就是我现在所拥有的

    ServerName localhost
<VirtualHost *:80>

    ServerAdmin admin@rutorrent
    ServerName localhost
    DocumentRoot /var/rutorrent/

    <Directory />
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>
    <Location />
        AuthType Basic
        AuthName "My ruTorrent web site"
        AuthUserFile "/etc/httpd/rutorrent_passwd"
        Require valid-user
        Order allow,deny
        Allow from all
    </Location>
    <Location ~ "^/rutorrent/(conf|share)">
        Order deny,allow
        Deny from all
    </Location>
    <Location ~ "/\\.svn">
        Order deny,allow
        Deny from all
    </Location>
    <Location "/RPC00001">
        AuthType Basic
        AuthName "My ruTorrent web site"
        AuthUserFile "/etc/httpd/rutorrent_passwd"
        Require user torrent
    </Location>
</VirtualHost>
<VirtualHost *:443>
    SSLEngine On
    SSLCertificateFile /etc/httpd/rutorrent.pem
    ServerAdmin admin@rutorrent
    ServerName localhost
    DocumentRoot /var/rutorrent

    <Directory />
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>
    <Location />
        AuthType Basic
        AuthName "My ruTorrent web site"
        AuthUserFile "/etc/httpd/rutorrent_passwd"
        Require valid-user
        Order allow,deny
        Allow from all
    </Location>
    <Location ~ "^/rutorrent/(conf|share)">
        Order deny,allow
        Deny from all
    </Location>
    <Location ~ "/\\.svn">
        Order deny,allow
        Deny from all
    </Location>
    <Location "/RPC00001">
        AuthType Basic
        AuthName "My ruTorrent web site"
        AuthUserFile "/etc/httpd/rutorrent_passwd"
        Require user torrent
    </Location>
</VirtualHost>
#SCGIMount /RPC00001 127.0.0.1:23876

我想这样做,所以它要求在 /var/rutorrent/passwordarea 中输入密码

我也不介意为 /var/rutorrent 使用单独的密码和用户名,所以如果有人能分享如何做到这一点,我将不胜感激。

谢谢

4

0 回答 0