apache setting for linux


1.1 httpd.conf setting
244 LoadModule auth_pam_module modules/mod_auth_pam.so
1.2 vhost.conf setting
 # Listen for virtual host requests on all IP addresses
      2 NameVirtualHost *:80
      3
      4
      5     DocumentRoot /var/www/html
      6     ServerName cnsrv158
      7
      8
      9
     10     DocumentRoot /var/www/html/dotproject
     11     ServerName dotproject
     12
     13
     14
     15     DocumentRoot /var/www/html/dotproject
     16     ServerName dotproject.mpe.fih-foxconn.com
     17
     18
     19
     20     DocumentRoot /var/www/html/wiki
     21     ServerName wiki
     22
     23
     24
     25     DocumentRoot /var/www/html/wiki
     26     ServerName wiki.mpe.fih-foxconn.com
     27
     28
     29
     30     DocumentRoot /var/www/html/egroupware
     31     ServerName egroupware
     32
     33
     34
     35     DocumentRoot /var/www/opendb
     36     ServerName opendb
     37     DirectoryIndex opendb.pl
     38
     39
     40
     41     ServerName opendb.mpe.fih-foxconn.com
     42     #Redirect permanent / http://server1.mpe.fih-foxconn.com/opendb/opendb.pl
     43     DocumentRoot /var/www/html

1.3 75_mod_perl.conf settings
IfDefine HAVE_PERL>
      2  
      3     LoadModule perl_module    extramodules/mod_perl.so
      4  
      5
      6
      7
      8     # Uncomment this line to globally enable warnings, which will be
      9     # written to the server's error log.  Warnings should be enabled
     10     # during the development process, but should be disabled on a
     11     # production server as they affect performance.
     12     #PerlSwitches -w
     13
     14     # Uncomment this line to enable taint checking globally.  When Perl is
     15     # running in taint mode various checks are performed to reduce the
     16     # risk of insecure data being passed to a subshell or being used to
     17     # modify the filesystem.  Unfortunately many Perl modules are not
     18     # taint-safe, so you should exercise care before enabling it on a
     19     # production server.
     20     #PerlSwitches -T
     21
     22
     23 #
     24 # Allow server status reports, with the URL of http://servername/perl-status
     25 # Change the ".your_domain.com" to match your domain to enable.
     26 #
     27
     28        
     29             SetHandler modperl
     30             PerlResponseHandler Apache2::Status
     31
     32             # StatusDumper:
     33             # When browsing symbol tables, the values of arrays, hashes and
     34             # scalars can be viewed via Data::Dumper if this configuration
     35             # variable is set to On:
     36             #PerlSetVar StatusDumper On
     37
     38             # StatusPeek:
     39             # With this option On and the Apache::Peek module installed,
     40             # functions and variables can be viewed ala Devel::Peek style.:
     41             #PerlSetVar StatusPeek On
     42
     43             # StatusLexInfo:
     44             # With this option On and the B::LexInfo module installed,
     45             # subroutine lexical variable information can be viewed.
     46             #PerlSetVar StatusLexInfo On
     47
     48             # StatusDeparse:
     49             # With this option On subroutines can be "deparsed".
     50             #PerlSetVar StatusDeparse On

     52             # StatusTerse:
     53             # With this option On, text-based op tree graphs of subroutines
     54             # can be displayed, thanks to B::Terse.
     55             #PerlSetVar StatusTerse On
     56
     57             # StatusTerseSize:
     58             # With this option On and the B::TerseSize module installed,
     59             # text-based op tree graphs of subroutines and their size can be
     60             # displayed. See the B::TerseSize docs for more info.
     61             #PerlSetVar StatusTerseSize On
     62
     63             # StatusTerseSizeMainSummary:
     64             # With this option On and the B::TerseSize module installed, a
     65             # "Memory Usage" will be added to the Apache::Status main menu.
     66             # This option is disabled by default, as it can be rather cpu
     67             # intensive to summarize memory usage for the entire server. It is
     68             # strongly suggested that this option only be used with a
     69             # development server running in -X mode, as the results will be
     70             # cached.
     71             #PerlSetVar StatusTerseSizeMainSummary On
     72
     73             # StatusGraph:
     74             # When StatusDumper is enabled, another link "OP Tree Graph" will
     75             # be present with the dump if this configuration variable is set
     76             # to On:
     77             #PerlSetVar StatusGraph
     78
     79             # Dot:
     80             # Location of the dot program for StatusGraph, if other than
     81             # /usr/bin or /usr/local/bin
     82             #Dot /usr/bin
     83
     84             # GraphDir:
     85             # Directory where StatusGraph should write it's temporary image
     86             # files. Default is $ServerRoot/logs/b_graphs.
     87             #GraphDir logs/b_graphs
     88
     89            
     90                 Order deny,allow
     91                 Deny from all
     92                 allow from 127.0.0.1
     93                 #Allow from .your_domain.com
     94            
     95
     96        

     99             SetHandler perl-script
    100             PerlHandler SOAP::Apache
    101        
    102
    103    
    104         SetHandler perl-script
    105        
    106           PerlHandler Apache::PerlRun
    107        
    108        
    109           PerlResponseHandler ModPerl::PerlRun
    110        
    111         Options -Indexes ExecCGI
    112         PerlSendHeader On
    113    
    114     #PerlModule Apache::DBI CGI DBD::Pg Config::IniFiles
    115     PerlModule Apache::DBI CGI DBD::Pg Config::IniFiles POSIX SOAP::Lite
    116     PerlRequire /var/www/opendb/startup.pl
    117
    118
    119
    120     # Provide two aliases to the same cgi-bin directory,
    121     # to see the effects of the 2 different mod_perl modes
    122     # for Apache::Registry Mode
    123     Alias /perl/ /var/www/perl/
    124
    125     # for Apache::Perlrun Mode
    126     Alias /cgi-perl/ /var/www/perl/
    127
    128
    129     AllowOverride All
    130     SetHandler perl-script
    131     PerlResponseHandler ModPerl::Registry
    132     PerlOptions +ParseHeaders
    133     Options -Indexes FollowSymLinks MultiViews ExecCGI
    134    
    135         Order allow,deny
    136         Allow from all
    137    
    138
 # set Apache::Registry Mode for /perl Alias
    141 #
    142 #    SetHandler perl-script
    143 #    PerlResponseHandler ModPerl::Registry
    144 #    Options -Indexes ExecCGI
    145 #    PerlSendHeader On
    146 #
    147
    148 # set Apache::PerlRun Mode for /cgi-perl Alias
    149 #
    150 #    SetHandler perl-script
    151 #    PerlResponseHandler ModPerl::PerlRun
    152 #    Options -Indexes ExecCGI
    153 #    PerlSendHeader On
    154 #
    155
    156
    157    
    158         AllowOverride None
    159         SetHandler perl-script
    160         PerlResponseHandler ModPerl::Registry
    161         PerlOptions +ParseHeaders
    162         Options -Indexes FollowSymLinks MultiViews ExecCGI
    163         PerlSendHeader On
    164        
    165             Order allow,deny
    166             Allow from all
    167        
    168    
    169
1.4cnsrv161 ldap setting

    #AllowOverride All
    #Options ExecCGI

    AuthLDAPEnabled On
    AuthLDAPURL ldap://localhost/ou=People,dc=mpe,dc=fih-foxconn,dc=com?uid
    #AuthLDAPURL ldap://10.167.67.165/ou=People,dc=mpe,dc=fih-foxconn,dc=com?uid
    AuthLDAPAuthoritative on
    AuthLDAPBindDN cn=root,dc=mpe,dc=fih-foxconn,dc=com
    AuthLDAPBindPassword secret
    #AuthLDAPURL ldap://10.167.66.105/dc=mpecn,dc=fih,dc=gd?sAMAccountName
    #AuthLDAPAuthoritative on

    #AuthPAM_Enabled on
    #AuthPAM_FallThrough on

    AuthType Basic
    AuthName "MPEG Partners"
    Require valid-user
    AllowOverride None
    Options FollowSymLinks
    #Options ExecCGI FollowSymLinks

   
      Order allow,deny
      Allow from all
      #Deny from all
      #Allow from 127.0.0.1
      #allow from .your_domain.com
   


    AllowOverride All
    Options ExecCGI
   
        Order allow,deny
        Allow from all
   



    AllowOverride All
    Options ExecCGI
   
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
        #allow from .your_domain.com
   


    AuthType Basic
    AuthName "OpenDB_02"
    AuthPAM_Enabled on
    AuthPAM_FallThrough on
  Require valid-user
    AllowOverride None
   
      Order allow,deny
      Allow from all
     


1.90 cnsrv156 settiing



    # Note that if you include a trailing / on fakename then the server will
    # require it to be present in the URL.  So "/icons" isn't aliased in this
    # example, only "/icons/".  If the fakename is slash-terminated, then the
    # realname must also be slash terminated, and if the fakename omits the
    # trailing slash, the realname must also omit it.
    # We include the /icons/ alias for FancyIndexed directory listings.  If you
    # do not use FancyIndexing, you may comment this out.
    Alias /icons/ "/var/www/icons/"
    Alias /error/ "/var/www/error/"
    Alias /opendb/ "/var/www/opendb/"
    Alias /opendb1/ "/var/www/opendb1/"
    Alias /opendb2/ "/var/www/opendb2/"
    Alias /opendb3/ "/var/www/opendb3/"
    Alias /opendb4/ "/var/www/opendb4/"
    Alias /opendb_01/ "/var/www/opendb_01/"
    Alias /opendb_02/ "/var/www/opendb_02/"
    Alias /opendb_03/ "/var/www/opendb_03/"
    Alias /opendb_04/ "/var/www/opendb_04/"
    Alias /opendb_05/ "/var/www/opendb_05/"
    Alias /opendb_06/ "/var/www/opendb_06/"
    Alias /opendb_07/ "/var/www/opendb_07/"
    Alias /opendb_08/ "/var/www/opendb_08/"
    Alias /opendb_bf/ "/var/www/opendb_bf/"

Alias /images/ "/var/www/images/"
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the realname directory are treated as applications and
    # run by the server when requested rather than as documents sent to the client.
    # The same rules about trailing "/" apply to ScriptAlias directives as to
    # Alias.
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
    ScriptAlias /protected-cgi-bin/ "/var/www/protected-cgi-bin/"


    AuthType Basic
    AuthName "OpenDB"
    AuthPAM_Enabled on
    AuthPAM_FallThrough on
  Require valid-user
    AllowOverride None
   
      Order allow,deny
      Allow from all
     

 
        SetHandler perl-script
       
          PerlHandler Apache::PerlRun
       
       
          PerlResponseHandler ModPerl::PerlRun
       
        Options -Indexes ExecCGI
        PerlSendHeader On
    

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11754813/viewspace-544782/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11754813/viewspace-544782/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值