notas:apache
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente | ||
notas:apache [2010/02/10 14:09] – cayu | notas:apache [2011/02/25 14:18] – cayu | ||
---|---|---|---|
Línea 32: | Línea 32: | ||
+ | |||
+ | ===== Redireccionar de HTTP a HTTPS ===== | ||
+ | |||
+ | < | ||
+ | RewriteEngine On | ||
+ | RewriteCond %{HTTPS} off | ||
+ | RewriteRule (.*) https:// | ||
+ | </ | ||
+ | |||
+ | ===== Seguridad ===== | ||
+ | En el blog sherekan http:// | ||
+ | |||
+ | **/ | ||
+ | < | ||
+ | # | ||
+ | # Disable access to the entire file system except for the directories that | ||
+ | # are explicitly allowed later. | ||
+ | # | ||
+ | # This currently breaks the configurations that come with some web application | ||
+ | # Debian packages. It will be made the default for the release after lenny. | ||
+ | # | ||
+ | #< | ||
+ | # | ||
+ | # Order Deny,Allow | ||
+ | # Deny from all | ||
+ | #</ | ||
+ | |||
+ | # Changing the following options will not really affect the security of the | ||
+ | # server, but might make attacks slightly more difficult in some cases. | ||
+ | |||
+ | # | ||
+ | # ServerTokens | ||
+ | # This directive configures what you return as the Server HTTP response | ||
+ | # Header. The default is ' | ||
+ | # and compiled in modules. | ||
+ | # Set to one of: Full | OS | Minimal | Minor | Major | Prod | ||
+ | # where Full conveys the most information, | ||
+ | # | ||
+ | # En Prod no mostramos ninguna info de version ni nada | ||
+ | ServerTokens Prod | ||
+ | |||
+ | # | ||
+ | # Optionally add a line containing the server version and virtual host | ||
+ | # name to server-generated pages (internal error documents, FTP directory | ||
+ | # listings, mod_status and mod_info output etc., but not CGI generated | ||
+ | # documents or custom error documents). | ||
+ | # Set to " | ||
+ | # Set to one of: On | Off | EMail | ||
+ | # | ||
+ | # No mostrar info de version ni nada | ||
+ | ServerSignature Off | ||
+ | |||
+ | # | ||
+ | # Allow TRACE method | ||
+ | # | ||
+ | # Set to " | ||
+ | # diagnostic purposes). | ||
+ | # | ||
+ | # Set to one of: On | Off | extended | ||
+ | # | ||
+ | TraceEnable Off | ||
+ | </ | ||
+ | |||
+ | **/ | ||
+ | < | ||
+ | expose_php = Off | ||
+ | </ |
notas/apache.txt · Última modificación: 2015/11/20 17:54 por cayu