Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

MastersRoX

habilitar AllowOverride e mod_rewrite como?

Recommended Posts

Tenta:

## Dynamic Shared Object (DSO) Support## To be able to use the functionality of a module which was built as a DSO you# have to place corresponding `LoadModule' lines at this location so the# directives contained in it are actually available _before_ they are used.# Please read the file README.DSO in the Apache 1.3 distribution for more# details about the DSO mechanism and run `apache -l' for the list of already# built-in (statically linked and thus always available) modules in your Apache# binary.## Note: The order in which modules are loaded is important. Don't change# the order below without expert advice.## Example:# LoadModule foo_module modules/mod_foo.so##LoadModule vhost_alias_module modules/mod_vhost_alias.so#LoadModule mime_magic_module modules/mod_mime_magic.so#LoadModule status_module modules/mod_status.so#LoadModule info_module modules/mod_info.so#LoadModule speling_module modules/mod_speling.soLoadModule rewrite_module modules/mod_rewrite.so#LoadModule anon_auth_module modules/mod_auth_anon.so#LoadModule dbm_auth_module modules/mod_auth_dbm.so#LoadModule digest_auth_module modules/mod_auth_digest.so#LoadModule digest_module modules/mod_digest.so#LoadModule proxy_module modules/mod_proxy.so#LoadModule cern_meta_module modules/mod_cern_meta.so#LoadModule expires_module modules/mod_expires.so#LoadModule headers_module modules/mod_headers.so#LoadModule usertrack_module modules/mod_usertrack.so#LoadModule unique_id_module modules/mod_unique_id.so## Reconstruction of the complete module list from all available modules# (static and shared ones) to achieve correct module execution order.## The modules listed below, without a corresponding LoadModule directive,# are static bound into the standard Apache binary distribution for Windows.## Note: The order in which modules are loaded is important. Don't change# the order below without expert advice.## [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]ClearModuleList#AddModule mod_vhost_alias.cAddModule mod_env.cAddModule mod_log_config.c#AddModule mod_mime_magic.cAddModule mod_mime.cAddModule mod_negotiation.c#AddModule mod_status.c#AddModule mod_info.cAddModule mod_include.cAddModule mod_autoindex.cAddModule mod_dir.cAddModule mod_isapi.cAddModule mod_cgi.cAddModule mod_asis.cAddModule mod_imap.cAddModule mod_actions.c#AddModule mod_speling.cAddModule mod_userdir.cAddModule mod_alias.c#AddModule mod_rewrite.cAddModule mod_access.cAddModule mod_auth.c#AddModule mod_auth_anon.c#AddModule mod_auth_dbm.c#AddModule mod_auth_digest.c#AddModule mod_digest.c#AddModule mod_proxy.c#AddModule mod_cern_meta.c#AddModule mod_expires.c#AddModule mod_headers.c#AddModule mod_usertrack.c#AddModule mod_unique_id.cAddModule mod_so.cAddModule mod_setenvif.c## ExtendedStatus controls whether Apache will generate "full" status# information (ExtendedStatus On) or just basic information (ExtendedStatus# Off) when the "server-status" handler is called. The default is Off.##ExtendedStatus On### Section 2: '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.### Port: The port to which the standalone server listens. Certain firewall# products must be configured before Apache can listen to a specific port.# Other running httpd servers will also interfere with this port. Disable# all firewall, security, and other services if you encounter problems.# To help diagnose problems use the Windows NT command NETSTAT -a#Port 80## ServerAdmin: Your address, where problems with the server should be# e-mailed. This address appears on some server-generated pages, such# as error documents.#ServerAdmin admin@localhost## ServerName allows you to set a host name which is sent back to clients for# your server if it's different than the one the program would get (i.e., use# "www" instead of the host's real name).## Note: You cannot just invent host names and hope they work. The name you# define here must be a valid DNS name for your host. If you don't understand# this, ask your network administrator.# If your host doesn't have a registered DNS name, enter its IP address here.# You will have to access it by its address (e.g., http://123.45.67.89/)# anyway, and this will make redirections work in a sensible way.## 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your# machine always knows itself by this address. If you use Apache strictly for# local testing and development, you may use 127.0.0.1 as the server name.#ServerName localhost## DocumentRoot: The directory out of which you will serve your# documents. By default, all requests are taken from this directory, but# symbolic links and aliases may be used to point to other locations.#DocumentRoot "C:/Apache/htdocs"## Each directory to which Apache has access, can be configured with respect# to which services and features are allowed and/or disabled in that# directory (and its subdirectories).## First, we configure the "default" to be a very restrictive set of# permissions.#<Directory />Options FollowSymLinks IndexesAllowOverride AuthConfig</Directory>## Note that from this point forward you must specifically allow# particular features to be enabled - so if something's not working as# you might expect, make sure that you have specifically enabled it# below.### This should be changed to whatever you set DocumentRoot to.#<Directory "C:/Apache/htdocs">## This may also be "None", "All", or any combination of "Indexes",# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".## Note that "MultiViews" must be named *explicitly* --- "Options All"# doesn't give it to you.#Options Indexes FollowSymLinks## This controls which options the .htaccess files in directories can# override. Can also be "All", or any combination of "Options", "FileInfo",# "AuthConfig", and "Limit"#AllowOverride All## Controls who can get stuff from this server.#</Directory>

Se não der certo, sinceramente eu não sei, pois é desse jeito que eu uso aqui, nem manjo muito de configurar esse negócio de mod_rewrite, qualquer coisa dá uma lida no doc do apache... http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.