apache 22 a php moduly

Jaroslav Votruba jaroslav.votruba at keytec.cz
Fri Sep 21 14:15:12 CEST 2007



>> SSLRandomSeed startup builtin
>> SSLRandomSeed connect builtin
>> nikdy drive jsem se s nimi nesetkal,sice ted googlim,ale moudrej z toho nejsem
>>     
>
> 	rika jaky zdroj se pouzije pro random seed.
>
>   
ted jsem si vsim,ze tyhle 2 polozky jsem mel drive v konfigu ssl a ne 
jak nyni v konfigu httpd


Ale zacal mi haprovat apache-nepozna .html soubor a nabizi jej 
stahovat,pritom volbu
<IfModule dir_module>
    DirectoryIndex index.html index.html.var index.php
</IfModule>
 tam mam a je tam i
AddType application/x-httpd-php .php .php3 .php4 .php5 .html .htm
AddType application/x-httpd-php-source .phps

tak by to melo fungivat,nebo ne?

co se tyce SSL ,nejak jej nemuzu stale rozchodit. V logu nic neni,ale 
nespoji me. Na co bych se mel podivat,abych se dopatral chyby?

pro sichr prikladam konfigy,jestli vas nahodou prasti do oci nejaka 
okata chyba.
Sice jsem vyhrozoval,ze se vratim k bezproblemovemu apachi20,ale neda mi 
to a musim to rozchodit s tou v2,2

##################zacatek httpd.conf#######################

ServerRoot "/usr/local"

Listen www.dvorec.eu:80

LoadModule authn_file_module libexec/apache22/mod_authn_file.so
LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so
LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so
LoadModule authn_default_module libexec/apache22/mod_authn_default.so
LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache22/mod_authz_user.so
LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so
LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so
LoadModule authz_default_module libexec/apache22/mod_authz_default.so
LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so
LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so
LoadModule file_cache_module libexec/apache22/mod_file_cache.so
LoadModule cache_module libexec/apache22/mod_cache.so
LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so
LoadModule dumpio_module libexec/apache22/mod_dumpio.so
LoadModule ext_filter_module libexec/apache22/mod_ext_filter.so
LoadModule include_module libexec/apache22/mod_include.so
LoadModule filter_module libexec/apache22/mod_filter.so
LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so
LoadModule deflate_module libexec/apache22/mod_deflate.so
LoadModule log_config_module libexec/apache22/mod_log_config.so
LoadModule logio_module libexec/apache22/mod_logio.so
LoadModule env_module libexec/apache22/mod_env.so
LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so
LoadModule expires_module libexec/apache22/mod_expires.so
LoadModule headers_module libexec/apache22/mod_headers.so
LoadModule usertrack_module libexec/apache22/mod_usertrack.so
LoadModule unique_id_module libexec/apache22/mod_unique_id.so
LoadModule setenvif_module libexec/apache22/mod_setenvif.so
LoadModule version_module libexec/apache22/mod_version.so
LoadModule ssl_module libexec/apache22/mod_ssl.so
LoadModule mime_module libexec/apache22/mod_mime.so
LoadModule dav_module libexec/apache22/mod_dav.so
LoadModule status_module libexec/apache22/mod_status.so
LoadModule autoindex_module libexec/apache22/mod_autoindex.so
LoadModule asis_module libexec/apache22/mod_asis.so
LoadModule info_module libexec/apache22/mod_info.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so
LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache22/mod_negotiation.so
LoadModule dir_module libexec/apache22/mod_dir.so
LoadModule imagemap_module libexec/apache22/mod_imagemap.so
LoadModule actions_module libexec/apache22/mod_actions.so
LoadModule speling_module libexec/apache22/mod_speling.so
LoadModule userdir_module libexec/apache22/mod_userdir.so
LoadModule alias_module libexec/apache22/mod_alias.so
LoadModule rewrite_module libexec/apache22/mod_rewrite.so

< IfModule !mpm_netware_module >
User www
Group www
< /IfModule >


ServerAdmin spravce at dvorec.eu


DocumentRoot "/usr/local/www/apache22/data"

< Directory / >
AllowOverride None
Order deny,allow
Deny from all
< /Directory >


< Directory "/usr/local/www/apache22/data" >
Options Indexes FollowSymLinks

AllowOverride None
Order allow,deny
Allow from all

# jake soubory bude otevirat
< /Directory >


< IfModule dir_module >
DirectoryIndex index.html index.html.var index.php
< /IfModule >

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

ErrorLog /var/log/httpd-error.log

LogLevel warn

< IfModule log_config_module >
LogFormat "%h %l %u %t \"%r\" % > s %b \"%{Referer}i\" 
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" % > s %b" common

< IfModule logio_module >
LogFormat "%h %l %u %t \"%r\" % > s %b \"%{Referer}i\" 
\"%{User-Agent}i\" %I %O" combinedio
< /IfModule >
CustomLog /var/log/httpd-access.log combined
< /IfModule >

< IfModule alias_module >
ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/"
< /IfModule >


< IfModule cgid_module >
< /IfModule >

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

DefaultType text/plain

< IfModule mime_module >
TypesConfig etc/apache22/mime.types

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .php3 .php4 .php5 .html .htm
AddType application/x-httpd-php-source .phps

< /IfModule >

< IfModule ssl_module >
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
< /IfModule >


Include etc/apache22/Includes/*.conf


##################konec httpd.conf#######################

##################zacatek httpd-ssl.conf#######################

Listen 443

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl

SSLPassPhraseDialog builtin

SSLSessionCache "shmcb:/var/run/ssl_scache(512000)"
SSLSessionCacheTimeout 300

SSLMutex "file:/var/run/ssl_mutex"


< VirtualHost _default_:443 >

DocumentRoot "/usr/local/www/apache22/data"
ServerName www.dvorec.eu:443
ServerAdmin spravce at dvorec.eu
ErrorLog "/var/log/httpd-error.log"
TransferLog "/var/log/httpd-access.log"

SSLEngine on

SSLCipherSuite 
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile "/etc/_ssl-cert/server.crt"
SSLCertificateKeyFile "/etc/_ssl-cert/server.key"


< FilesMatch "\.(cgi|shtml|phtml|php)$" >
SSLOptions +StdEnvVars
< /FilesMatch >
< Directory "/usr/local/www/apache22/cgi-bin" >
SSLOptions +StdEnvVars
< /Directory >

BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

CustomLog "/var/log/httpd-ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

< /VirtualHost >

##################konec httpd-ssl.conf#######################



-- 
s pozdravem
Votruba Jaroslav
Spravce IT
tel: 389002504
mobil: 724496941
mailto:jaroslav.votruba at keytec.cz  



More information about the Users-l mailing list