Portál AbcLinuxu, 8. května 2025 16:01
/etc/apache2/httpd.conf
# # /etc/apache2/httpd.conf # # run under this user/group id Include /etc/apache2/uid.conf # - how many server processes to start (server pool regulation) # - usage of KeepAlive Include /etc/apache2/server-tuning.conf # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. ErrorLog /var/log/apache2/error_log # generated from APACHE_MODULES in /etc/sysconfig/apache2 Include /etc/apache2/sysconfig.d/loadmodule.conf # IP addresses / ports to listen on Include /etc/apache2/listen.conf # predefined logging formats Include /etc/apache2/mod_log_config.conf # generated from global settings in /etc/sysconfig/apache2 Include /etc/apache2/sysconfig.d/global.conf # optional mod_status, mod_info Include /etc/apache2/mod_status.conf Include /etc/apache2/mod_info.conf # optional cookie-based user tracking # read the documentation before using it!! Include /etc/apache2/mod_usertrack.conf # configuration of server-generated directory listings Include /etc/apache2/mod_autoindex-defaults.conf # associate MIME types with filename extensions TypesConfig /etc/apache2/mime.types DefaultType text/plain Include /etc/apache2/mod_mime-defaults.conf # set up (customizable) error responses Include /etc/apache2/errors.conf # global (server-wide) SSL configuration, that is not specific to # any virtual host Include /etc/apache2/ssl-global.conf # forbid access to the entire filesystem by default <Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> # use .htaccess files for overriding, AccessFileName .htaccess # and never show them <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> # List of resources to look for when the client requests a directory DirectoryIndex index.html index.html.var ### 'Main' server configuration ############################################# # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # <VirtualHost> definition. These values also provide defaults for # any <VirtualHost> containers you may define later in the file. # # All of these directives may appear inside <VirtualHost> containers, # in which case these default settings will be overridden for the # virtual host being defined. # Include /etc/apache2/default-server.conf # Another way to include your own files # # The file below is generated from /etc/sysconfig/apache2, # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and # APACHE_CONF_INCLUDE_DIRS Include /etc/apache2/sysconfig.d/include.conf ### Virtual server configuration ############################################ # # VirtualHost: If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs-2.2/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # Include /etc/apache2/vhosts.d/*.conf # Note: instead of adding your own configuration here, consider # adding it in your own file (/etc/apache2/httpd.conf.local) # putting its name into APACHE_CONF_INCLUDE_FILES in # /etc/sysconfig/apache2 -- this will make system updates # easier :)
/etc/sysconf/apache
## Path: Network/WWW/Apache2 ## Description: Configuration for Apache 2 ## Type: string ## Default: "" ## ServiceRestart: apache2 # # Here you can name files, separated by spaces, that should be Include'd from # httpd.conf. # # This allows you to add e.g. VirtualHost statements without touching # /etc/apache2/httpd.conf itself, which makes upgrading easier. # APACHE_CONF_INCLUDE_FILES="" ## Type: string ## Default: "" ## ServiceRestart: apache2 # # Here you can name directories, separated by spaces, that should be Include'd # from httpd.conf. # # All files contained in these directories will be recursively included by apache. # If a pattern like *.conf is appended, apache will use it. # # Examples: "/etc/apache2/my_conf/" # "/etc/apache2/virtual_hosts/*.conf" # "local/*.conf /srv/www/virtual/" # APACHE_CONF_INCLUDE_DIRS="" ## Type: string ## Default: "actions alias auth_basic authz_host authn_file authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5" ## ServiceRestart: apache2 # # # apache's default installation # APACHE_MODULES="authz_host actions alias asis auth autoindex cgi dir imap include log_config mime negotiation setenvif status userdir" # your settings APACHE_MODULES="authz_host actions alias auth_basic authz_groupfile authn_file authz_user autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imagemap vhost_alias php5 authz_default" ## Type: string ## Default: "" ## ServiceRestart: apache2 # # # Example: # "SSL STATUS AWSTATS SVN_VIEWCVS no_subversion_today" # APACHE_SERVER_FLAGS="" ## Type: string ## Default: "" ## ServiceRestart: apache2 # # Which config file do you want to use? # (if not set, /etc/apache2/httpd.conf is used.) # It is unusual to need to use this setting. # APACHE_HTTPD_CONF="" ## Type: list(prefork,worker) ## Default: "" ## ServiceRestart: apache2 # # MPM (multi-processing module) to use. # # APACHE_MPM="" ## Type: string ## Default: "" ## ServiceReload: apache2 # # email address of the server administrator (ServerAdmin directive) # This address is added to the server's responses if APACHE_SERVERSIGNATURE # is set to "email". # APACHE_SERVERADMIN="root@hydra" ## Type: string ## Default: "" ## ServiceReload: apache2 # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # APACHE_SERVERNAME="hydra" ## Type: integer ## Default: 2 # # timeout during server startup (seconds) # after this time, the start script decides wether the httpd process started without error. # # Increase it, if you use mod_ssl and your certificate is passphrase protected! # APACHE_START_TIMEOUT="2" ## Type: list(on,off,email) ## Default: "on" ## ServiceReload: apache2 # # Configures the footer on server-generated documents # This correlates to the ServerSignature directive. # APACHE_SERVERSIGNATURE="on" ## Type: list(debug,info,notice,warn,error,crit,alert,emerg) ## Default: "warn" ## ServiceReload: apache2 # # LogLevel: Control the number of messages logged to the error_log. # APACHE_LOGLEVEL="debug" ## Type: string ## Default: "/var/log/apache2/access_log combined" ## ServiceRestart: apache2 # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a <VirtualHost> # container, they will be logged here. Contrarywise, if you *do* # define per-<VirtualHost> access logfiles, transactions will be # logged therein and *not* in this file. # # setting it to "/var/log/apache2/access_log combined" # corresponds to # CustomLog /var/log/apache2/access_log combined # APACHE_ACCESS_LOG="/var/log/apache2/access_log combined" ## Type: list(On,Off,DNS) ## Default: "Off" ## ServiceReload: apache2 # # UseCanonicalName: Determines how Apache constructs self-referencing # URLs and the SERVER_NAME and SERVER_PORT variables. # When set "Off", Apache will use the Hostname and Port supplied # by the client. When set "On", Apache will use the value of the # ServerName directive. # APACHE_USE_CANONICAL_NAME="off" ## Type: list(Major,Minor,Minimal,ProductOnly,OS,Full) ## Default: "OS" ## ServiceReload: apache2 # # How much information the server response header field contains about the server. # (installed modules, versions, etc.) # see http://httpd.apache.org/docs-2.2/mod/core.html#servertokens # APACHE_SERVERTOKENS="OS" ## Type: list(on,off) ## Default: "off" ## ServiceReload: apache2 # # If mod_status is used, include extended information about the server, like # CPU usage, in the status report. It is a server-wide setting, and it can cost # some performance! # APACHE_EXTENDED_STATUS="off" ## Type: list(on,off) ## Default: "off" ## ServiceRestart: apache2 # # Enable buffered logging # APACHE_BUFFERED_LOGS="off" ## Type: integer ## Default: 300 ## ServiceReload: apache2 # # Timeout: The number of seconds before receives and sends time out. # It is a server wide setting. # APACHE_TIMEOUT="300" ## Path: Network/WWW/Apache/SuSEhelp ## Description: SuSE help doc server configuration ## Type: yesno ## Default: no ## Config: apache ## ServiceRestart: apache ## Command: # # Set this to yes on the central documentation server # or to configure apache for local use of susehelp. # Then the online-help-system indices are automatically adjusted # and access to the help-files is allowed as specified in DOC_ALLOW. # To run as a client for the central documentation server who's name # is specified in DOC_HOST, just set DOC_SERVER to no. # The DOC_HOST and DOC_ALLOW variables are in the file /etc/sysconfig/susehelp. # DOC_SERVER="no"
[Wed Sep 06 09:24:52 2006] [info] removed PID file /var/run/httpd2.pid (pid=6772) [Wed Sep 06 09:24:52 2006] [notice] caught SIGTERM, shutting down [Wed Sep 06 09:25:43 2006] [warn] module authz_host_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module actions_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module alias_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module auth_basic_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module authz_groupfile_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module authn_file_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module authz_user_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module autoindex_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module cgi_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module dir_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module include_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module log_config_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module mime_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module negotiation_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module setenvif_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module status_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module userdir_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module asis_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module imagemap_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module vhost_alias_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module php5_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [warn] module authz_default_module is already loaded, skipping [Wed Sep 06 09:25:43 2006] [notice] Apache/2.2.0 (Linux/SUSE) configured -- resuming normal operations [Wed Sep 06 09:25:43 2006] [info] Server built: May 2 2006 08:47:14 [Wed Sep 06 09:25:43 2006] [debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem)tu som to dal do povodneho stavu
[Wed Sep 06 09:26:25 2006] [info] removed PID file /var/run/httpd2.pid (pid=6988) [Wed Sep 06 09:26:25 2006] [notice] caught SIGTERM, shutting down [Wed Sep 06 09:26:26 2006] [notice] Apache/2.2.0 (Linux/SUSE) configured -- resuming normal operations [Wed Sep 06 09:26:26 2006] [info] Server built: May 2 2006 08:47:14 [Wed Sep 06 09:26:26 2006] [debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem) [Wed Sep 06 09:26:48 2006] [info] removed PID file /var/run/httpd2.pid (pid=7192) [Wed Sep 06 09:26:48 2006] [notice] caught SIGTERM, shutting down [Wed Sep 06 09:26:52 2006] [notice] Apache/2.2.0 (Linux/SUSE) configured -- resuming normal operations [Wed Sep 06 09:26:52 2006] [info] Server built: May 2 2006 08:47:14 [Wed Sep 06 09:26:52 2006] [debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem)
127.0.0.1 - - [06/Sep/2006:11:06:09 +0200] "GET /~radnom HTTP/1.1" 404 1057 "-" "Mozilla/5.0 (X11; U; Linux i686; sk-SK; rv:1.8.0.3) Gecko/ 20060425 SUSE/1.5.0.3-7 Firefox/1.5.0.3"a toto v error_log
[Wed Sep 06 11:06:09 2006] [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/~radnomto druhe je zrejme kedze nieje funkcny modul userdir tak to bude ten tulpas hladat v rootdir ...
/server-info
, jestli tam ten modul skutečně je a jak je nakonfigurován. Ale k tomu samozřejmě musíte mít modul mod_info In file: /etc/apache2/conf.d/mod_userdir.conf 17: UserDir disabled root 26: UserDir public_html 28: <Directory /home/*/public_html> 30: AllowOverride FileInfo AuthConfig Limit Indexes 31: Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec 33: <Limit GET POST OPTIONS PROPFIND> 34: Order allow,deny 35: Allow from all : </Limit> 38: <LimitExcept GET POST OPTIONS PROPFIND> 39: Order deny,allow 40: Deny from all : </LimitExcept> : </Directory> In file: /etc/apache2/conf.d/php5.conf 2: AddType application/x-httpd-php .php3 3: AddType application/x-httpd-php .php4 4: AddType application/x-httpd-php .php5 5: AddType application/x-httpd-php .php 6: AddType application/x-httpd-php-source .php3s 7: AddType application/x-httpd-php-source .php4s 8: AddType application/x-httpd-php-source .php5s 9: AddType application/x-httpd-php-source .phps 10: DirectoryIndex index.php3 11: DirectoryIndex index.php4 12: DirectoryIndex index.php5 13: DirectoryIndex index.php
Server Module List mod_authz_default.c mod_php5.c mod_vhost_alias.c mod_info.c mod_imagemap.c mod_asis.c mod_userdir.c mod_status.c mod_setenvif.c mod_negotiation.c mod_mime.c mod_log_config.c mod_include.c mod_dir.c mod_cgi.c mod_autoindex.c mod_authz_user.c mod_authn_file.c mod_authz_groupfile.c mod_auth_basic.c mod_alias.c mod_actions.c mod_authz_host.c mod_so.c http_core.c prefork.c core.c
Module Name: mod_php5.c Content handlers: yes Configuration Phase Participation: Create Directory Config, Merge Directory Configs Request Phase Participation: Content Handlers Module Directives: php_value - PHP Value Modifier php_flag - PHP Flag Modifier php_admin_value - PHP Value Modifier (Admin) php_admin_flag - PHP Flag Modifier (Admin) PHPINIDir - Directory containing the php.ini file Current Configuration:
Module Name: mod_userdir.c Content handlers: none Configuration Phase Participation: Create Server Config Request Phase Participation: Translate Name Module Directives: UserDir - the public subdirectory in users' home directories, or 'disabled', or 'disabled username username...', or 'enabled username username...' Current Configuration: In file: /etc/apache2/conf.d/mod_userdir.conf 17: UserDir disabled root 26: UserDir public_html 17: UserDir disabled root 26: UserDir public_html
[Wed Sep 06 14:24:33 2006] [alert] [client 127.0.0.1] /home/random/public_html/.htaccess: Options not allowed here3. php modul ide .. ale z nejakeho dovodu nefunguje prepojenie s mySQL ... no ale to bude asi problem php5 (asi tam chyba kniznica mysql) takze poprosim niekoho kto ma napad co s co by mohlo byt vo veci ... d~
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.