Create an account    
 home  
 
Web www.thaihealth.net
  You are here:> home>topics> linux for newbies > µÑÇÍÂèÒ§httpd.conf ã¹ apache2.0+mod_ssl ©
µÑÇÍÂèÒ§httpd.conf ã¹ apache2.0+mod_ssl
Posted on Wednesday, October 08 @ 00:00:00 GMT+7 by admin

linux for newbies ÍÕ¡µÑÇÍÂèÒ§ ¾Íä´éà»ç¹äÍà´Õ ÊÓËÃѺ¡ÒÃãªé§Ò¹ apache2.0 ·ÕèÁÕ mod_ssl 㹡óյéͧ¡ÒÃ·Ó https

Listen 80
ServerRoot /usr/local/apache2
DocumentRoot /usr/local/webroot

ServerName localhost:80
ServerAdmin admin@yourdomain.com

ServerSignature On
ServerTokens Full

DefaultType text/plain
AddDefaultCharset ISO-8859-1

UseCanonicalName Off

HostnameLookups Off

ErrorLog logs/error_log
LogLevel warn

PidFile logs/httpd.pid

Timeout 300

KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

User  nobody
Group nobody

<IfModule prefork.c>
MaxClients           150
StartServers         5
MinSpareServers      5
MaxSpareServers      10
MaxRequestsPerChild  0
</IfModule>

<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>


LoadModule access_module modules/mod_access.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule headers_module modules/mod_headers.so
LoadModule setenvif_module modules/mod_setenvif.so
<IfDefine SSL>
LoadModule ssl_module modules/mod_ssl.so
</IfDefine>
LoadModule mime_module modules/mod_mime.so
LoadModule status_module modules/mod_status.so
LoadModule info_module modules/mod_info.so
LoadModule dir_module modules/mod_dir.so
LoadModule php4_module modules/libphp4.so


<Directory />
    <IfModule mod_deflate.c>
# AddOutputFilterByType DEFLATE text/html text/plain text/xml
# The above does not seem to work 100% under linux right now,
# we will use this instead...
 SetOutputFilter DEFLATE
        <IfModule mod_headers.c>
            Header append Vary User-Agent
        </IfModule>
    </IfModule>
    Options FollowSymLinks
    AllowOverride None
    order deny,allow
    deny from all
</Directory>


<Directory "/usr/local/webroot">
    order allow,deny
    allow from all
</Directory>


<IfModule mod_log_config.c>
    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"" combined
    CustomLog logs/access_log combined
    <IfModule mod_deflate.c>
        DeflateFilterNote Input instream
        DeflateFilterNote Output outstream
        DeflateFilterNote Ratio ratio
        LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
        CustomLog logs/deflate_log deflate
    </IfModule>
</IfModule>

<IfModule mod_dir.c>
    DirectoryIndex index.html index.php
</IfModule>

<IfModule mod_mime.c>
    TypesConfig conf/mime.types
    AddType application/x-tar .tgz
    AddType application/x-rar-compressed .rar
    <IfModule sapi_apache2.c>
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
    </IfModule>
</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
    BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
    BrowserMatch "^WebDrive" redirect-carefully
    BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
    BrowserMatch "^gnome-vfs" redirect-carefully
    <IfModule mod_deflate.c>
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4.0[678] no-gzip
        BrowserMatch bMSIE !no-gzip !gzip-only-text/html
    </IfModule>
</IfModule>

<IfModule mod_status.c>
    ExtendedStatus On
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    </Location>
</IfModule>

<IfModule mod_info.c>
    <Location /server-info>
        SetHandler server-info
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    </Location>
</IfModule>

<IfModule mod_ssl.c>
    Include conf/ssl.conf
</IfModule>

 


blog this


blog this

More about linux for newbies
· apache 2.0.54 has come, see the changes2005-06-25 13:20:47
· apache 2.0.49 released. Try!2004-03-23 12:27:38
· New Linux Server project2003-07-17 11:13:23

Comment Post
1  by
on Sunday, March 16 @ 19:48:42 GMT+7
< href="http://f.jsoftj.com/">URL blocked by staff منتديا&

Read the rest of this comment...




Your Name:

[ New User ]

Subject:


Comment:

Allowed HTML:
<b> <i> <a> <em> <br> <strong> <blockquote> <tt> <li> <ol> <ul>
Security code:



T news tweak
 

       Sponsored Links
       Related Links
· More about linux for newbies
· News by admin


Most read story about linux for newbies:
 New Linux Server project(4495)

       Article Rating
Average Score: 0
Votes: 0

Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad


       Options

 Printer Friendly  Printer Friendly

 Send to a Friend  Send to a Friend

News ©

àÅè¹à¡ÁÊì arcade games free!

main sitethaihealth | home | forums | downloads | topics

Seo from our desk thai seo
Web site engine code is Copyright © 2003 by PHP-Nuke.Copyright 2007 Thaihealth and pattaya doctor
Page Generation: 0.283 Seconds

Theme developed by WebDesignHQ.com Modified By DoctorNUKE