+ Responder ao Tópico



  1. #1
    gustcol
    Visitante

    Padrão Ajuda com autenticação...

    Galera, estou com problemas para colocar a autenticação no meu apache..

    vc poderião estar ajudando..

    eu quero q o http://aquilola.com.br/home/user2 pop uma tela de requisação de user and password.. sendo q o aquilola.com.br é um virtual host no meu apache... como faço.. p.s.: segue o meu httpd.conf help please;;;;




    ServerRoot "/etc/httpd"

    LockFile /var/run/httpd.lock


    PidFile /var/run/httpd.pid


    ScoreBoardFile logs/apache_runtime_status



    Timeout 300

    Off

    MaxKeepAliveRequests 100

    MaxClients 150

    MaxRequestsPerChild 1000


    Port 80


    <IfDefine HAVE_SSL>
    Listen 80
    Listen 443
    </IfDefine>

    User apache
    Group apache

    ServerAdmin root@localhost

    DocumentRoot "/var/www/html"

    <Directory />
    Options FollowSymLinks
    # AllowOverride None
    AllowOverride FileInfo
    </Directory>

    <Directory "/var/www/html">

    Options Indexes FollowSymLinks


    AllowOverride AuthConfig


    Order allow,deny
    Allow from all
    </Directory>


    <Directory "/var/www/html/prod/webbill/billprov">
    AllowOverride AuthConfig
    Options Indexes FollowSymLinks
    Allow from all
    </Directory>

    ProxyPass /report http://webbill.timnet.com:8180/billprov/jsp/index.jsp
    ProxyPassReverse /report http://webbill.timnet.com:8180/billprov/jsp/index.jsp

    <IfModule mod_userdir.c>
    UserDir public_html
    </IfModule>


    <IfModule mod_dir.c>
    # DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi index.jsp default.jsp
    DirectoryIndex none
    </IfModule>


    AccessFileName .htaccess

    <Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
    </Files>

    UseCanonicalName On

    <IfModule mod_mime.c>
    TypesConfig /etc/mime.types
    </IfModule>


    <IfModule mod_mime_magic.c>
    # MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
    </IfModule>

    HostnameLookups Off

    ErrorLog logs/error_log


    LogLevel warn


    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent

    CustomLog logs/access_log combined

    <IfModule mod_alias.c>

    Alias /icons/ "/var/www/icons/"

    <Directory "/var/www/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

    <Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>

    </IfModule>

    DefaultIcon /icons/unknown.gif

    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

    </IfModule>

    <IfModule mod_negotiation.c>
    LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
    </IfModule>

    <IfModule mod_php3.c>
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    </IfModule>
    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php .php4 .php3 .phtml
    AddType application/x-httpd-php-source .phps
    </IfModule>
    <IfModule mod_php.c>
    AddType application/x-httpd-php .phtml
    </IfModule>

    AddType application/x-tar .tgz

    AddType text/html .shtml
    AddHandler server-parsed .shtml

    AddHandler imap-file map

    </IfModule>

    <IfModule mod_setenvif.c>

    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0

    </IfModule>

    Alias /doc/ /usr/share/doc/
    <Directory /usr/share/doc>
    order deny,allow
    deny from all
    allow from localhost .localdomain
    Options Indexes FollowSymLinks
    </Directory>


    NameVirtualHost 10.18.14.20


    <VirtualHost _default_:443>

    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
    </Files>
    <Directory "/var/www/cgi-bin">
    SSLOptions +StdEnvVars
    </Directory>

    SetEnvIf User-Agent ".*MSIE.*" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0

    CustomLog logs/ssl_request_log \
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

    </VirtualHost>

    </IfDefine>

    <VirtualHost ola.com:80>
    NameVirtualHost ola.com
    ServerAdmin [email protected]
    DocumentRoot /home/user1/
    <Directory "/home/user1">
    Options Indexes FollowSymLinks MultiViews ExecCGI
    AllowOverride none
    Order allow,deny
    Allow from all
    </Directory>
    ServerName ola.com
    </VirtualHost>

    <VirtualHost aquilola.com.br:80>
    NameVirtualHost aquilola.com.br
    ServerAdmin [email protected]
    DocumentRoot /home/user2/
    <Directory "/home/user2">
    Options Indexes FollowSymLinks MultiViews ExecCGI
    AllowOverride none
    Order allow,deny
    Allow from all
    </Directory>
    ServerName aquilola.com.br
    </VirtualHost>


    <IMG SRC="images/forum/icons/icon_wink.gif">

  2. #2

    Padrão Ajuda com autenticação...

    Ola..

    Acesse este link, ira te ajudar...
    http://www.fe.up.pt/cica3w/helpdesk/faqs/unix_11.html

    T+ <IMG SRC="images/forum/icons/icon_wink.gif">