За последние 24 часа нас посетили 34230 программистов и 1748 роботов. Сейчас ищут 1236 программистов ...

Не работает файл htacces

Тема в разделе "PHP для новичков", создана пользователем kilogram, 15 апр 2012.

  1. kilogram

    kilogram Активный пользователь

    С нами с:
    19 мар 2012
    Сообщения:
    116
    Симпатии:
    0
    В файле httpd.conf в самом конце файла ввел такую строку,чтоб дать возможность серверу использовать файл httpd.conf для изменения настроек сервера.
    Нашел ещё AllowOverride в httpd.conf и изменил значние на All.

    Код (Text):
    1.  
    2. <Directory />
    3.     Options FollowSymLinks
    4.     AllowOverride All
    5.     Order deny,allow
    6.     Deny from all
    7. </Directory>
    В файле httpd.conf ввел DirectoryIndex 100.php,чтоб запускать этот файл когда не найден файл index.php, удалил файл index.php. В файле 100.php ввел банальное:
    Код (Text):
    1. <html><body>
    2. <?php
    3. echo 'Ошибка!';
    4. ?>
    5. </body></html>
    Перезапустил Апач. Запускаю http://test.ru/ выдает на экран
    Код (Text):
    1.  
    2. Forbidden
    3.  
    4. You don't have permission to access / on this server.
    5.  
    6. Apache/2.2.19 (Win32) PHP/5.3.6 Server at test.ru Port 80
    Как сделать чтоб работал .htaccess?
     
  2. YSandro

    YSandro Старожил

    С нами с:
    7 апр 2011
    Сообщения:
    2.523
    Симпатии:
    2
    Вместо Deny from all напиши Allow from all.
     
  3. kilogram

    kilogram Активный пользователь

    С нами с:
    19 мар 2012
    Сообщения:
    116
    Симпатии:
    0
    Написал так, перезагрузил сервер, ничего не дало.
    Код (Text):
    1. <Directory />
    2.     Options FollowSymLinks
    3.     AllowOverride All
    4.     Order deny,allow
    5.     Allow from all
    6. </Directory>
     
  4. YSandro

    YSandro Старожил

    С нами с:
    7 апр 2011
    Сообщения:
    2.523
    Симпатии:
    2
    Это правило на все директории по умолчанию.
    Ниже должны быть правила для той папки, в которой находятся документы. В этой папке правила могут переопределять базовые правила.
    У меня, например, под Виндой такая последовательность
    Код (Text):
    1. <Directory />
    2.     Options Indexes FollowSymLinks
    3.     AllowOverride All
    4.     Order allow,deny
    5.     Satisfy all
    6. </Directory>
    7.  
    8. <Directory "e:/www">
    9.     Options Indexes
    10.     AllowOverride None
    11.     Allow from 127.0.0.1
    12.     Order Deny,Allow
    13. </Directory>
    14.  
    15. <Directory "e:/www/test/htdocs">
    16.     Options Includes ExecCGI FollowSymLinks
    17.     AllowOverride All
    18.     Allow from all
    19. </Directory>
     
  5. kilogram

    kilogram Активный пользователь

    С нами с:
    19 мар 2012
    Сообщения:
    116
    Симпатии:
    0
    Что-то ничего не срабатывает, все арвно не пашет.
     
  6. kilogram

    kilogram Активный пользователь

    С нами с:
    19 мар 2012
    Сообщения:
    116
    Симпатии:
    0
    Проделал эти шаги, ничего не помогло. Вот мой файл.
    Код (Text):
    1.  
    2. #
    3. # This is the main Apache HTTP server configuration file.  It contains the
    4. # configuration directives that give the server its instructions.
    5. # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    6. # In particular, see
    7. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    8. # for a discussion of each configuration directive.
    9. #
    10. # Do NOT simply read the instructions in here without understanding
    11. # what they do.  They're here only as hints or reminders.  If you are unsure
    12. # consult the online docs. You have been warned.  
    13. #
    14. # Configuration and logfile names: If the filenames you specify for many
    15. # of the server's control files begin with "/" (or "drive:/" for Win32), the
    16. # server will use that explicit path.  If the filenames do *not* begin
    17. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    18. # with ServerRoot set to "C:/www" will be interpreted by the
    19. # server as "C:/www/logs/foo.log".
    20. #
    21. # NOTE: Where filenames are specified, you must use forward slashes
    22. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
    23. # If a drive letter is omitted, the drive on which httpd.exe is located
    24. # will be used by default.  It is recommended that you always supply
    25. # an explicit drive letter in absolute paths to avoid confusion.
    26.  
    27. #
    28. # ServerRoot: The top of the directory tree under which the server's
    29. # configuration, error, and log files are kept.
    30. #
    31. # Do not add a slash at the end of the directory path.  If you point
    32. # ServerRoot at a non-local disk, be sure to point the LockFile directive
    33. # at a local disk.  If you wish to share the same ServerRoot for multiple
    34. # httpd daemons, you will need to change at least LockFile and PidFile.
    35. #
    36. ServerRoot "C:/www"
    37.  
    38.  
    39.  
    40. #
    41. # Listen: Allows you to bind Apache to specific IP addresses and/or
    42. # ports, instead of the default. See also the <VirtualHost>
    43. # directive.
    44. #
    45. # Change this to Listen on specific IP addresses as shown below to
    46. # prevent Apache from glomming onto all bound IP addresses.
    47. #
    48. #Listen 12.34.56.78:80
    49. Listen 80
    50.  
    51. #
    52. # Dynamic Shared Object (DSO) Support
    53. #
    54. # To be able to use the functionality of a module which was built as a DSO you
    55. # have to place corresponding `
    56. ' lines at this location so the
    57. # directives contained in it are actually available _before_ they are used.
    58. # Statically compiled modules (those listed by `httpd -l') do not need
    59. # to be loaded here.
    60. #
    61. # Example:
    62. # LoadModule foo_module modules/mod_foo.so
    63. #
    64. LoadModule actions_module modules/mod_actions.so
    65. LoadModule alias_module modules/mod_alias.so
    66. LoadModule asis_module modules/mod_asis.so
    67. LoadModule auth_basic_module modules/mod_auth_basic.so
    68. #LoadModule auth_digest_module modules/mod_auth_digest.so
    69. #LoadModule authn_alias_module modules/mod_authn_alias.so
    70. #LoadModule authn_anon_module modules/mod_authn_anon.so
    71. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
    72. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    73. LoadModule authn_default_module modules/mod_authn_default.so
    74. LoadModule authn_file_module modules/mod_authn_file.so
    75. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    76. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    77. LoadModule authz_default_module modules/mod_authz_default.so
    78. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    79. LoadModule authz_host_module modules/mod_authz_host.so
    80. #LoadModule authz_owner_module modules/mod_authz_owner.so
    81. LoadModule authz_user_module modules/mod_authz_user.so
    82. LoadModule autoindex_module modules/mod_autoindex.so
    83. #LoadModule cache_module modules/mod_cache.so
    84. #LoadModule cern_meta_module modules/mod_cern_meta.so
    85. LoadModule cgi_module modules/mod_cgi.so
    86. #LoadModule charset_lite_module modules/mod_charset_lite.so
    87. #LoadModule dav_module modules/mod_dav.so
    88. #LoadModule dav_fs_module modules/mod_dav_fs.so
    89. #LoadModule dav_lock_module modules/mod_dav_lock.so
    90. #LoadModule dbd_module modules/mod_dbd.so
    91. #LoadModule deflate_module modules/mod_deflate.so
    92. LoadModule dir_module modules/mod_dir.so
    93. #LoadModule disk_cache_module modules/mod_disk_cache.so
    94. #LoadModule dumpio_module modules/mod_dumpio.so
    95. LoadModule env_module modules/mod_env.so
    96. #LoadModule expires_module modules/mod_expires.so
    97. #LoadModule ext_filter_module modules/mod_ext_filter.so
    98. #LoadModule file_cache_module modules/mod_file_cache.so
    99. #LoadModule filter_module modules/mod_filter.so
    100. #LoadModule headers_module modules/mod_headers.so
    101. #LoadModule ident_module modules/mod_ident.so
    102. #LoadModule imagemap_module modules/mod_imagemap.so
    103. LoadModule include_module modules/mod_include.so
    104. #LoadModule info_module modules/mod_info.so
    105. LoadModule isapi_module modules/mod_isapi.so
    106. #LoadModule ldap_module modules/mod_ldap.so
    107. #LoadModule logio_module modules/mod_logio.so
    108. LoadModule log_config_module modules/mod_log_config.so
    109. #LoadModule log_forensic_module modules/mod_log_forensic.so
    110. #LoadModule mem_cache_module modules/mod_mem_cache.so
    111. LoadModule mime_module modules/mod_mime.so
    112. #LoadModule mime_magic_module modules/mod_mime_magic.so
    113. LoadModule negotiation_module modules/mod_negotiation.so
    114. #LoadModule proxy_module modules/mod_proxy.so
    115. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    116. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    117. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
    118. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    119. #LoadModule proxy_http_module modules/mod_proxy_http.so
    120. #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    121. #LoadModule reqtimeout_module modules/mod_reqtimeout.so
    122. LoadModule rewrite_module modules/mod_rewrite.so
    123. LoadModule setenvif_module modules/mod_setenvif.so
    124. #LoadModule speling_module modules/mod_speling.so
    125. #LoadModule ssl_module modules/mod_ssl.so
    126. #LoadModule status_module modules/mod_status.so
    127. #LoadModule substitute_module modules/mod_substitute.so
    128. #LoadModule unique_id_module modules/mod_unique_id.so
    129. #LoadModule userdir_module modules/mod_userdir.so
    130. #LoadModule usertrack_module modules/mod_usertrack.so
    131. #LoadModule version_module modules/mod_version.so
    132. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    133.  
    134. <IfModule !mpm_netware_module>
    135. <IfModule !mpm_winnt_module>
    136. #
    137. # If you wish httpd to run as a different user or group, you must run
    138. # httpd as root initially and it will switch.  
    139. #
    140. # User/Group: The name (or #number) of the user/group to run httpd as.
    141. # It is usually good practice to create a dedicated user and group for
    142. # running httpd, as with most system services.
    143. #
    144. User daemon
    145. Group daemon
    146.  
    147. </IfModule>
    148. </IfModule>
    149.  
    150. # 'Main' server configuration
    151. #
    152. # The directives in this section set up the values used by the 'main'
    153. # server, which responds to any requests that aren't handled by a
    154. # <VirtualHost> definition.  These values also provide defaults for
    155. # any <VirtualHost> containers you may define later in the file.
    156. #
    157. # All of these directives may appear inside <VirtualHost> containers,
    158. # in which case these default settings will be overridden for the
    159. # virtual host being defined.
    160. #
    161.  
    162. #
    163. # ServerAdmin: Your address, where problems with the server should be
    164. # e-mailed.  This address appears on some server-generated pages, such
    165. # as error documents.  e.g. admin@your-domain.com
    166. #
    167. ServerAdmin admin@localhost.ru
    168.  
    169. #
    170. # ServerName gives the name and port that the server uses to identify itself.
    171. # This can often be determined automatically, but we recommend you specify
    172. # it explicitly to prevent problems during startup.
    173. #
    174. # If your host doesn't have a registered DNS name, enter its IP address here.
    175. #
    176. #ServerName localhost:80
    177.  
    178. #
    179. # DocumentRoot: The directory out of which you will serve your
    180. # documents. By default, all requests are taken from this directory, but
    181. # symbolic links and aliases may be used to point to other locations.
    182. #
    183. DocumentRoot "C:/www/htdocs"
    184.  
    185. #
    186. # Each directory to which Apache has access can be configured with respect
    187. # to which services and features are allowed and/or disabled in that
    188. # directory (and its subdirectories).
    189. #
    190. # First, we configure the "default" to be a very restrictive set of
    191. # features.  
    192. #
    193.  
    194.  
    195.  
    196. <Directory />
    197.     AccessFileName .htaccess
    198.     Options FollowSymLinks
    199.     AllowOverride All
    200.     Order deny,allow
    201.     Allow from all
    202. </Directory>
    203. #
    204. # Note that from this point forward you must specifically allow
    205. # particular features to be enabled - so if something's not working as
    206. # you might expect, make sure that you have specifically enabled it
    207. # below.
    208. #
    209.  
    210. #
    211. # This should be changed to whatever you set DocumentRoot to.
    212. #
    213. <Directory "C:/www/htdocs">
    214.  
    215.  
    216. AllowOverride All
    217.  
    218. </Directory>
    219.     #
    220.     # Possible values for the Options directive are "None", "All",
    221.     # or any combination of:
    222.     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    223.     #
    224.     # Note that "MultiViews" must be named *explicitly* --- "Options All"
    225.     # doesn't give it to you.
    226.     #
    227.     # The Options directive is both complicated and important.  Please see
    228.     # http://httpd.apache.org/docs/2.2/mod/core.html#options
    229.     # for more information.
    230.     #
    231.     Options Indexes FollowSymLinks
    232.  
    233.     #
    234.     # AllowOverride controls what directives may be placed in .htaccess files.
    235.     # It can be "All", "None", or any combination of the keywords:
    236.     #   Options FileInfo AuthConfig Limit
    237.     #
    238.     AllowOverride All
    239.  
    240.     #
    241.     # Controls who can get stuff from this server.
    242.     #
    243.     Order allow,deny
    244.     Allow from all
    245.  
    246. </Directory>
    247.  
    248. #
    249. # DirectoryIndex: sets the file that Apache will serve if a directory
    250. # is requested.
    251. #
    252. <IfModule dir_module>
    253.     DirectoryIndex index.html index.php
    254.     AllowOverride All
    255. </IfModule>
    256.  
    257. #
    258. # The following lines prevent .htaccess and .htpasswd files from being
    259. # viewed by Web clients.
    260. #
    261. <FilesMatch "^\.ht">
    262.     Order allow,deny
    263.     Deny from all
    264.     Satisfy All
    265. </FilesMatch>
    266.  
    267. #
    268. # ErrorLog: The location of the error log file.
    269. # If you do not specify an ErrorLog directive within a <VirtualHost>
    270. # container, error messages relating to that virtual host will be
    271. # logged here.  If you *do* define an error logfile for a <VirtualHost>
    272. # container, that host's errors will be logged there and not here.
    273. #
    274. ErrorLog "logs/error.log"
    275.  
    276. #
    277. # LogLevel: Control the number of messages logged to the error_log.
    278. # Possible values include: debug, info, notice, warn, error, crit,
    279. # alert, emerg.
    280. #
    281. LogLevel warn
    282.  
    283. <IfModule log_config_module>
    284.     #
    285.     # The following directives define some format nicknames for use with
    286.     # a CustomLog directive (see below).
    287.     #
    288.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    289.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
    290.  
    291.     <IfModule logio_module>
    292.       # You need to enable mod_logio.c to use %I and %O
    293.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    294.     </IfModule>
    295.  
    296.     #
    297.     # The location and format of the access logfile (Common Logfile Format).
    298.     # If you do not define any access logfiles within a <VirtualHost>
    299.     # container, they will be logged here.  Contrariwise, if you *do*
    300.     # define per-<VirtualHost> access logfiles, transactions will be
    301.     # logged therein and *not* in this file.
    302.     #
    303.     CustomLog "logs/access.log" common
    304.  
    305.     #
    306.     # If you prefer a logfile with access, agent, and referer information
    307.     # (Combined Logfile Format) you can use the following directive.
    308.     #
    309.     #CustomLog "logs/access.log" combined
    310. </IfModule>
    311.  
    312. <IfModule alias_module>
    313.     #
    314.     # Redirect: Allows you to tell clients about documents that used to
    315.     # exist in your server's namespace, but do not anymore. The client
    316.     # will make a new request for the document at its new location.
    317.     # Example:
    318.     # Redirect permanent /foo http://localhost/bar
    319.  
    320.     #
    321.     # Alias: Maps web paths into filesystem paths and is used to
    322.     # access content that does not live under the DocumentRoot.
    323.     # Example:
    324.     # Alias /webpath /full/filesystem/path
    325.     #
    326.     # If you include a trailing / on /webpath then the server will
    327.     # require it to be present in the URL.  You will also likely
    328.     # need to provide a <Directory> section to allow access to
    329.     # the filesystem path.
    330.  
    331.     #
    332.     # ScriptAlias: This controls which directories contain server scripts.
    333.     # ScriptAliases are essentially the same as Aliases, except that
    334.     # documents in the target directory are treated as applications and
    335.     # run by the server when requested rather than as documents sent to the
    336.     # client.  The same rules about trailing "/" apply to ScriptAlias
    337.     # directives as to Alias.
    338.     #
    339.     ScriptAlias /cgi-bin/ "C:/www/cgi-bin/"
    340.  
    341. </IfModule>
    342.  
    343. <IfModule cgid_module>
    344.     #
    345.     # ScriptSock: On threaded servers, designate the path to the UNIX
    346.     # socket used to communicate with the CGI daemon of mod_cgid.
    347.     #
    348.     #Scriptsock logs/cgisock
    349. </IfModule>
    350.  
    351. #
    352. # "C:/www/cgi-bin" should be changed to whatever your ScriptAliased
    353. # CGI directory exists, if you have that configured.
    354. #
    355. <Directory "C:/www/cgi-bin">
    356.     AllowOverride all
    357.     Options None
    358.     Order allow,deny
    359.     Allow from all
    360. </Directory>
    361.  
    362. <Directory "C:/www/htdocs/test.ru/www">
    363. #тут могут быть и другие настройки типа AllowOverride или Allow
    364. Options ExecCGI
    365. </Directory>
    366.  
    367. #
    368. # DefaultType: the default MIME type the server will use for a document
    369. # if it cannot otherwise determine one, such as from filename extensions.
    370. # If your server contains mostly text or HTML documents, "text/plain" is
    371. # a good value.  If most of your content is binary, such as applications
    372. # or images, you may want to use "application/octet-stream" instead to
    373. # keep browsers from trying to display binary files as though they are
    374. # text.
    375. #
    376. DefaultType text/plain
    377.  
    378. <IfModule mime_module>
    379.     #
    380.     # TypesConfig points to the file containing the list of mappings from
    381.     # filename extension to MIME-type.
    382.     #
    383.     TypesConfig conf/mime.types
    384.  
    385.     #
    386.     # AddType allows you to add to or override the MIME configuration
    387.     # file specified in TypesConfig for specific file types.
    388.     #
    389.     #AddType application/x-gzip .tgz
    390.     #
    391.     # AddEncoding allows you to have certain browsers uncompress
    392.     # information on the fly. Note: Not all browsers support this.
    393.     #
    394.     #AddEncoding x-compress .Z
    395.     #AddEncoding x-gzip .gz .tgz
    396.     #
    397.     # If the AddEncoding directives above are commented-out, then you
    398.     # probably should define those extensions to indicate media types:
    399.     #
    400.     AddType application/x-compress .Z
    401.     AddType application/x-gzip .gz .tgz
    402.  
    403.     #
    404.     # AddHandler allows you to map certain file extensions to "handlers":
    405.     # actions unrelated to filetype. These can be either built into the server
    406.     # or added with the Action directive (see below)
    407.     #
    408.     # To use CGI scripts outside of ScriptAliased directories:
    409.     # (You will also need to add "ExecCGI" to the "Options" directive.)
    410.     #
    411.     AddHandler cgi-script .cgi .pl .bat .exe
    412.     AddType cgi-script .exe .cgi
    413.  
    414.     # For type maps (negotiated resources):
    415.     #AddHandler type-map var
    416.  
    417.     #
    418.     # Filters allow you to process content before it is sent to the client.
    419.     #
    420.     # To parse .shtml files for server-side includes (SSI):
    421.     # (You will also need to add "Includes" to the "Options" directive.)
    422.     #
    423.     #AddType text/html .shtml
    424.     #AddOutputFilter INCLUDES .shtml
    425. </IfModule>
    426.  
    427. #
    428. # The mod_mime_magic module allows the server to use various hints from the
    429. # contents of the file itself to determine its type.  The MIMEMagicFile
    430. # directive tells the module where the hint definitions are located.
    431. #
    432. #MIMEMagicFile conf/magic
    433.  
    434. #
    435. # Customizable error responses come in three flavors:
    436. # 1) plain text 2) local redirects 3) external redirects
    437. #
    438. # Some examples:
    439. #ErrorDocument 500 "The server made a boo boo."
    440. #ErrorDocument 404 /missing.html
    441. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    442. #ErrorDocument 402 http://localhost/subscription_info.html
    443. #
    444.  
    445. #
    446. # EnableMMAP and EnableSendfile: On systems that support it,
    447. # memory-mapping or the sendfile syscall is used to deliver
    448. # files.  This usually improves server performance, but must
    449. # be turned off when serving from networked-mounted
    450. # filesystems or if support for these functions is otherwise
    451. # broken on your system.
    452. #
    453. #EnableMMAP off
    454. #EnableSendfile off
    455.  
    456. # Supplemental configuration
    457. #
    458. # The configuration files in the conf/extra/ directory can be
    459. # included to add extra features or to modify the default configuration of
    460. # the server, or you may simply copy their contents here and change as
    461. # necessary.
    462.  
    463. # Server-pool management (MPM specific)
    464. #Include conf/extra/httpd-mpm.conf
    465.  
    466. # Multi-language error messages
    467. #Include conf/extra/httpd-multilang-errordoc.conf
    468.  
    469. # Fancy directory listings
    470. #Include conf/extra/httpd-autoindex.conf
    471.  
    472. # Language settings
    473. #Include conf/extra/httpd-languages.conf
    474.  
    475. # User home directories
    476. #Include conf/extra/httpd-userdir.conf
    477.  
    478. # Real-time info on requests and configuration
    479. #Include conf/extra/httpd-info.conf
    480.  
    481. # Virtual hosts
    482. #Include conf/extra/httpd-vhosts.conf
    483.  
    484. # Local access to the Apache HTTP Server Manual
    485. #Include conf/extra/httpd-manual.conf
    486.  
    487. # Distributed authoring and versioning (WebDAV)
    488. #Include conf/extra/httpd-dav.conf
    489.  
    490. # Various default settings
    491. #Include conf/extra/httpd-default.conf
    492.  
    493. # Secure (SSL/TLS) connections
    494. #Include conf/extra/httpd-ssl.conf
    495. #
    496. # Note: The following must must be present to support
    497. #       starting without SSL on platforms with no /dev/random equivalent
    498. #       but a statically compiled-in mod_ssl.
    499. #
    500. <IfModule ssl_module>
    501. SSLRandomSeed startup builtin
    502. SSLRandomSeed connect builtin
    503. </IfModule>
    504.  
    505. LoadModule php5_module "C:/php/php5apache2_2.dll"
    506.  
    507. <Directory “C:\www\htdocs\”>
    508. AllowOverride All
    509. Order allow,deny
    510. Allow from all
    511. </Directory>
    512.  
    513. AccessFileName .htaccess.
     
  7. YSandro

    YSandro Старожил

    С нами с:
    7 апр 2011
    Сообщения:
    2.523
    Симпатии:
    2
    Ну ты и напортачил с этим конфигом. Слишком длинный получается список исправлений. Хотел тут написать, да остановился. Конструкции типа
    Код (Text):
    1. <Directory "C:/www/htdocs">
    2. </Directory>
    3. </Directory>
    или
    Код (Text):
    1. <IfModule dir_module>
    2.     DirectoryIndex index.html index.php
    3.     AllowOverride All
    4. </IfModule>
    или
    Код (Text):
    1. <Directory “C:\www\htdocs\”>
    должны приводить к краху Апача. Не знаю, как вообще запускается. Если не будет привычки следить за каждой мелочью, то программировать не получится.

    Лучше заново начать, взять из папки conf/original/ файл httpd.conf и заменить им твой испорченный.
    Пожалуй, я не смогу помочь в данном случае. Ты пишешь, что ничего не помогает, но ведь не сделал так же.
     
  8. kilogram

    kilogram Активный пользователь

    С нами с:
    19 мар 2012
    Сообщения:
    116
    Симпатии:
    0
    Здесь
    Код (Text):
    1. <Directory "C:/www/htdocs">
    2. </Directory>
    3. </Directory>
    Убрал одну </Directory> которая закрывает директорию.
    Вот здесь:
    Код (Text):
    1.  
    2. <IfModule dir_module>
    3.     DirectoryIndex index.html index.php
    4.     AllowOverride All
    5. </IfModule>
    Что именно не правильно?
    В этом месте <Directory “C:\www\htdocs\”> что не так?

    Для возможности .htaccess я ввел в само конце такое? Почему не хочет работать?
    Код (Text):
    1.  
    2. <Directory “C:\www\htdocs\”>
    3. AllowOverride All
    4. Order allow,deny
    5. Allow from all
    6. </Directory>
    7.  
    8. AccessFileName .htaccess.
     
  9. kilogram

    kilogram Активный пользователь

    С нами с:
    19 мар 2012
    Сообщения:
    116
    Симпатии:
    0
    Написал так, все равно не хочет работать.

    <Directory />
    AccessFileName .htaccess
    Options FollowSymLinks
    AllowOverride All
    Order allow,denny
    Allow from all
    </Directory>

    Измененный вариант. http://tempfile.ru/file/2390130
     
  10. kilogram

    kilogram Активный пользователь

    С нами с:
    19 мар 2012
    Сообщения:
    116
    Симпатии:
    0
    В папке C:\www\conf есть 2 файла httpd.conf (BAK) и httpd.conf (TXT),я все правлю в BAK, верно?

    Добавлено спустя 32 секунды:
    Подкоректировал теперь в файле httpd.conf оригинале, а не баке все по правилам, выдает ошибку при запуске test.ru

    Код (Text):
    1. Forbidden
    2.  
    3. You don't have permission to access / on this server.
    4.  
    5. Apache/2.2.19 (Win32) PHP/5.3.6 Server at test.ru Port 80
    Вод файл http://tempfile.ru/file/2390170
     
  11. mahmuzar

    mahmuzar Старожил

    С нами с:
    6 апр 2012
    Сообщения:
    4.631
    Симпатии:
    425
    Адрес:
    РД, г. Махачкала.
    Покажи свой httpd.conf
    и вообще там ничего в другой формат правлять не надо. Просто надо конфигурировать tttpd.conf

    Код (Text):
    1. #
    2. # This is the main Apache HTTP server configuration file.  It contains the
    3. # configuration directives that give the server its instructions.
    4. # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    5. # In particular, see
    6. # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    7. # for a discussion of each configuration directive.
    8. #
    9. # Do NOT simply read the instructions in here without understanding
    10. # what they do.  They're here only as hints or reminders.  If you are unsure
    11. # consult the online docs. You have been warned.  
    12. #
    13. # Configuration and logfile names: If the filenames you specify for many
    14. # of the server's control files begin with "/" (or "drive:/" for Win32), the
    15. # server will use that explicit path.  If the filenames do *not* begin
    16. # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    17. # with ServerRoot set to "C:/www" will be interpreted by the
    18. # server as "C:/www/logs/foo.log".
    19. #
    20. # NOTE: Where filenames are specified, you must use forward slashes
    21. # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
    22. # If a drive letter is omitted, the drive on which httpd.exe is located
    23. # will be used by default.  It is recommended that you always supply
    24. # an explicit drive letter in absolute paths to avoid confusion.
    25.  
    26. #
    27. # ServerRoot: The top of the directory tree under which the server's
    28. # configuration, error, and log files are kept.
    29. #
    30. # Do not add a slash at the end of the directory path.  If you point
    31. # ServerRoot at a non-local disk, be sure to point the LockFile directive
    32. # at a local disk.  If you wish to share the same ServerRoot for multiple
    33. # httpd daemons, you will need to change at least LockFile and PidFile.
    34. #
    35. ServerRoot "C:/www"
    36.  
    37.  
    38.  
    39. #
    40. # Listen: Allows you to bind Apache to specific IP addresses and/or
    41. # ports, instead of the default. See also the <VirtualHost>
    42. # directive.
    43. #
    44. # Change this to Listen on specific IP addresses as shown below to
    45. # prevent Apache from glomming onto all bound IP addresses.
    46. #
    47. #Listen 12.34.56.78:80
    48. Listen 80
    49.  
    50. #
    51. # Dynamic Shared Object (DSO) Support
    52. #
    53. # To be able to use the functionality of a module which was built as a DSO you
    54. # have to place corresponding `LoadModule' lines at this location so the
    55. # directives contained in it are actually available _before_ they are used.
    56. # Statically compiled modules (those listed by `httpd -l') do not need
    57. # to be loaded here.
    58. #
    59. # Example:
    60. # LoadModule foo_module modules/mod_foo.so
    61. #
    62. LoadModule actions_module modules/mod_actions.so
    63. LoadModule alias_module modules/mod_alias.so
    64. LoadModule asis_module modules/mod_asis.so
    65. LoadModule auth_basic_module modules/mod_auth_basic.so
    66. #LoadModule auth_digest_module modules/mod_auth_digest.so
    67. #LoadModule authn_alias_module modules/mod_authn_alias.so
    68. #LoadModule authn_anon_module modules/mod_authn_anon.so
    69. #LoadModule authn_dbd_module modules/mod_authn_dbd.so
    70. #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    71. LoadModule authn_default_module modules/mod_authn_default.so
    72. LoadModule authn_file_module modules/mod_authn_file.so
    73. #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    74. #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    75. LoadModule authz_default_module modules/mod_authz_default.so
    76. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    77. LoadModule authz_host_module modules/mod_authz_host.so
    78. #LoadModule authz_owner_module modules/mod_authz_owner.so
    79. LoadModule authz_user_module modules/mod_authz_user.so
    80. LoadModule autoindex_module modules/mod_autoindex.so
    81. #LoadModule cache_module modules/mod_cache.so
    82. #LoadModule cern_meta_module modules/mod_cern_meta.so
    83. LoadModule cgi_module modules/mod_cgi.so
    84. #LoadModule charset_lite_module modules/mod_charset_lite.so
    85. #LoadModule dav_module modules/mod_dav.so
    86. #LoadModule dav_fs_module modules/mod_dav_fs.so
    87. #LoadModule dav_lock_module modules/mod_dav_lock.so
    88. #LoadModule dbd_module modules/mod_dbd.so
    89. #LoadModule deflate_module modules/mod_deflate.so
    90. LoadModule dir_module modules/mod_dir.so
    91. #LoadModule disk_cache_module modules/mod_disk_cache.so
    92. #LoadModule dumpio_module modules/mod_dumpio.so
    93. LoadModule env_module modules/mod_env.so
    94. #LoadModule expires_module modules/mod_expires.so
    95. #LoadModule ext_filter_module modules/mod_ext_filter.so
    96. #LoadModule file_cache_module modules/mod_file_cache.so
    97. #LoadModule filter_module modules/mod_filter.so
    98. #LoadModule headers_module modules/mod_headers.so
    99. #LoadModule ident_module modules/mod_ident.so
    100. #LoadModule imagemap_module modules/mod_imagemap.so
    101. LoadModule include_module modules/mod_include.so
    102. #LoadModule info_module modules/mod_info.so
    103. LoadModule isapi_module modules/mod_isapi.so
    104. #LoadModule ldap_module modules/mod_ldap.so
    105. #LoadModule logio_module modules/mod_logio.so
    106. LoadModule log_config_module modules/mod_log_config.so
    107. #LoadModule log_forensic_module modules/mod_log_forensic.so
    108. #LoadModule mem_cache_module modules/mod_mem_cache.so
    109. LoadModule mime_module modules/mod_mime.so
    110. #LoadModule mime_magic_module modules/mod_mime_magic.so
    111. LoadModule negotiation_module modules/mod_negotiation.so
    112. #LoadModule proxy_module modules/mod_proxy.so
    113. #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    114. #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    115. #LoadModule proxy_connect_module modules/mod_proxy_connect.so
    116. #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    117. #LoadModule proxy_http_module modules/mod_proxy_http.so
    118. #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    119. #LoadModule reqtimeout_module modules/mod_reqtimeout.so
    120. LoadModule rewrite_module modules/mod_rewrite.so
    121. LoadModule setenvif_module modules/mod_setenvif.so
    122. #LoadModule speling_module modules/mod_speling.so
    123. #LoadModule ssl_module modules/mod_ssl.so
    124. #LoadModule status_module modules/mod_status.so
    125. #LoadModule substitute_module modules/mod_substitute.so
    126. #LoadModule unique_id_module modules/mod_unique_id.so
    127. #LoadModule userdir_module modules/mod_userdir.so
    128. #LoadModule usertrack_module modules/mod_usertrack.so
    129. #LoadModule version_module modules/mod_version.so
    130. #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    131.  
    132.  
    133. <IfModule !mpm_netware_module>
    134. <IfModule !mpm_winnt_module>
    135. #
    136. # If you wish httpd to run as a different user or group, you must run
    137. # httpd as root initially and it will switch.  
    138. #
    139. # User/Group: The name (or #number) of the user/group to run httpd as.
    140. # It is usually good practice to create a dedicated user and group for
    141. # running httpd, as with most system services.
    142. #
    143. User daemon
    144. Group daemon
    145.  
    146. </IfModule>
    147. </IfModule>
    148.  
    149. # 'Main' server configuration
    150. #
    151. # The directives in this section set up the values used by the 'main'
    152. # server, which responds to any requests that aren't handled by a
    153. # <VirtualHost> definition.  These values also provide defaults for
    154. # any <VirtualHost> containers you may define later in the file.
    155. #
    156. # All of these directives may appear inside <VirtualHost> containers,
    157. # in which case these default settings will be overridden for the
    158. # virtual host being defined.
    159. #
    160.  
    161. #
    162. # ServerAdmin: Your address, where problems with the server should be
    163. # e-mailed.  This address appears on some server-generated pages, such
    164. # as error documents.  e.g. admin@your-domain.com
    165. #
    166. ServerAdmin admin@localhost.ru
    167.  
    168. #
    169. # ServerName gives the name and port that the server uses to identify itself.
    170. # This can often be determined automatically, but we recommend you specify
    171. # it explicitly to prevent problems during startup.
    172. #
    173. # If your host doesn't have a registered DNS name, enter its IP address here.
    174. #
    175. ServerName localhost:80
    176.  
    177. #
    178. # DocumentRoot: The directory out of which you will serve your
    179. # documents. By default, all requests are taken from this directory, but
    180. # symbolic links and aliases may be used to point to other locations.
    181. #
    182. DocumentRoot "C:/www/htdocs"
    183.  
    184. #
    185. # Each directory to which Apache has access can be configured with respect
    186. # to which services and features are allowed and/or disabled in that
    187. # directory (and its subdirectories).
    188. #
    189. # First, we configure the "default" to be a very restrictive set of
    190. # features.  
    191. #
    192. <Directory />
    193. Options Includes Indexes FollowSymLinks
    194. AllowOverride All
    195. Order Allow,Deny
    196. Allow from all
    197. </Directory>
    198.  
    199. #
    200. # Note that from this point forward you must specifically allow
    201. # particular features to be enabled - so if something's not working as
    202. # you might expect, make sure that you have specifically enabled it
    203. # below.
    204. #
    205.  
    206. #
    207. # This should be changed to whatever you set DocumentRoot to.
    208. #
    209. <Directory "C:/www/htdocs">
    210.     #
    211.     # Possible values for the Options directive are "None", "All",
    212.     # or any combination of:
    213.     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    214.     #
    215.     # Note that "MultiViews" must be named *explicitly* --- "Options All"
    216.     # doesn't give it to you.
    217.     #
    218.     # The Options directive is both complicated and important.  Please see
    219.     # http://httpd.apache.org/docs/2.2/mod/core.html#options
    220.     # for more information.
    221.     #
    222.     Options Indexes FollowSymLinks
    223.  
    224.     #
    225.     # AllowOverride controls what directives may be placed in .htaccess files.
    226.     # It can be "All", "None", or any combination of the keywords:
    227.     #   Options FileInfo AuthConfig Limit
    228.     #
    229.     AllowOverride None
    230.  
    231.     #
    232.     # Controls who can get stuff from this server.
    233.     #
    234.     Order Allow,Deny
    235.     Allow from All
    236.  
    237. </Directory>
    238.  
    239. #
    240. # DirectoryIndex: sets the file that Apache will serve if a directory
    241. # is requested.
    242. #
    243. <IfModule dir_module>
    244.     DirectoryIndex index.html index.htm index.php
    245. </IfModule>
    246.  
    247.  
    248.  
    249. #
    250. # The following lines prevent .htaccess and .htpasswd files from being
    251. # viewed by Web clients.
    252. #
    253. <FilesMatch "^.ht">
    254.     Order allow,deny
    255.     Deny from all
    256.     Satisfy All
    257. </FilesMatch>
    258.  
    259. #
    260. # ErrorLog: The location of the error log file.
    261. # If you do not specify an ErrorLog directive within a <VirtualHost>
    262. # container, error messages relating to that virtual host will be
    263. # logged here.  If you *do* define an error logfile for a <VirtualHost>
    264. # container, that host's errors will be logged there and not here.
    265. #
    266. ErrorLog "logs/error.log"
    267.  
    268. #
    269. # LogLevel: Control the number of messages logged to the error_log.
    270. # Possible values include: debug, info, notice, warn, error, crit,
    271. # alert, emerg.
    272. #
    273. LogLevel warn
    274.  
    275. <IfModule log_config_module>
    276.     #
    277.     # The following directives define some format nicknames for use with
    278.     # a CustomLog directive (see below).
    279.     #
    280.     LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    281.     LogFormat "%h %l %u %t \"%r\" %>s %b" common
    282.  
    283.     <IfModule logio_module>
    284.       # You need to enable mod_logio.c to use %I and %O
    285.       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    286.     </IfModule>
    287.  
    288.     #
    289.     # The location and format of the access logfile (Common Logfile Format).
    290.     # If you do not define any access logfiles within a <VirtualHost>
    291.     # container, they will be logged here.  Contrariwise, if you *do*
    292.     # define per-<VirtualHost> access logfiles, transactions will be
    293.     # logged therein and *not* in this file.
    294.     #
    295.     CustomLog "logs/access.log" common
    296.  
    297.     #
    298.     # If you prefer a logfile with access, agent, and referer information
    299.     # (Combined Logfile Format) you can use the following directive.
    300.     #
    301.     #CustomLog "logs/access.log" combined
    302. </IfModule>
    303.  
    304. <IfModule alias_module>
    305.     #
    306.     # Redirect: Allows you to tell clients about documents that used to
    307.     # exist in your server's namespace, but do not anymore. The client
    308.     # will make a new request for the document at its new location.
    309.     # Example:
    310.     # Redirect permanent /foo http://localhost/bar
    311.  
    312.     #
    313.     # Alias: Maps web paths into filesystem paths and is used to
    314.     # access content that does not live under the DocumentRoot.
    315.     # Example:
    316.     # Alias /webpath /full/filesystem/path
    317.     #
    318.     # If you include a trailing / on /webpath then the server will
    319.     # require it to be present in the URL.  You will also likely
    320.     # need to provide a <Directory> section to allow access to
    321.     # the filesystem path.
    322.  
    323.     #
    324.     # ScriptAlias: This controls which directories contain server scripts.
    325.     # ScriptAliases are essentially the same as Aliases, except that
    326.     # documents in the target directory are treated as applications and
    327.     # run by the server when requested rather than as documents sent to the
    328.     # client.  The same rules about trailing "/" apply to ScriptAlias
    329.     # directives as to Alias.
    330.     #
    331.     ScriptAlias /cgi-bin/ "C:/www/cgi-bin/"
    332.  
    333.  
    334. </IfModule>
    335.  
    336. <IfModule cgid_module>
    337.     #
    338.     # ScriptSock: On threaded servers, designate the path to the UNIX
    339.     # socket used to communicate with the CGI daemon of mod_cgid.
    340.     #
    341.     #Scriptsock logs/cgisock
    342. </IfModule>
    343.  
    344. #
    345. # "C:/www/cgi-bin" should be changed to whatever your ScriptAliased
    346. # CGI directory exists, if you have that configured.
    347. #
    348. <Directory "C:/www/cgi-bin/">
    349.     AllowOverride None
    350.     Options ExecCGI - #тут кроме CGI ничего не будет открываться
    351.     Order Allow,Deny
    352.     Allow from All
    353. </Directory>
    354.  
    355. <Directory "C:/www/htdocs/test.ru/www">
    356. #тут могут быть и другие настройки типа AllowOverride или Allow
    357. Options ExecCGI
    358. </Directory>
    359.  
    360.  
    361. #
    362. # DefaultType: the default MIME type the server will use for a document
    363. # if it cannot otherwise determine one, such as from filename extensions.
    364. # If your server contains mostly text or HTML documents, "text/plain" is
    365. # a good value.  If most of your content is binary, such as applications
    366. # or images, you may want to use "application/octet-stream" instead to
    367. # keep browsers from trying to display binary files as though they are
    368. # text.
    369. #
    370. DefaultType text/plain
    371.  
    372. <IfModule mime_module>
    373.     #
    374.     # TypesConfig points to the file containing the list of mappings from
    375.     # filename extension to MIME-type.
    376.     #
    377.     TypesConfig conf/mime.types
    378.  
    379.     #
    380.     # AddType allows you to add to or override the MIME configuration
    381.     # file specified in TypesConfig for specific file types.
    382.     #
    383.     #AddType application/x-gzip .tgz
    384.     #
    385.     # AddEncoding allows you to have certain browsers uncompress
    386.     # information on the fly. Note: Not all browsers support this.
    387.     #
    388.     #AddEncoding x-compress .Z
    389.     #AddEncoding x-gzip .gz .tgz
    390.     #
    391.     # If the AddEncoding directives above are commented-out, then you
    392.     # probably should define those extensions to indicate media types:
    393.     #
    394.     AddType application/x-compress .Z
    395.     AddType application/x-gzip .gz .tgz
    396.  
    397.     #
    398.     # AddHandler allows you to map certain file extensions to "handlers":
    399.     # actions unrelated to filetype. These can be either built into the server
    400.     # or added with the Action directive (see below)
    401.     #
    402.     # To use CGI scripts outside of ScriptAliased directories:
    403.     # (You will also need to add "ExecCGI" to the "Options" directive.)
    404.     #
    405.     AddHandler cgi-script .cgi
    406.  
    407.     # For type maps (negotiated resources):
    408.     #AddHandler type-map var
    409.  
    410.     #
    411.     # Filters allow you to process content before it is sent to the client.
    412.     #
    413.     # To parse .shtml files for server-side includes (SSI):
    414.     # (You will also need to add "Includes" to the "Options" directive.)
    415.     #
    416.     AddType text/html .shtml
    417.     AddOutputFilter INCLUDES .shtml
    418. </IfModule>
    419.  
    420. #
    421. # The mod_mime_magic module allows the server to use various hints from the
    422. # contents of the file itself to determine its type.  The MIMEMagicFile
    423. # directive tells the module where the hint definitions are located.
    424. #
    425. #MIMEMagicFile conf/magic
    426.  
    427. #
    428. # Customizable error responses come in three flavors:
    429. # 1) plain text 2) local redirects 3) external redirects
    430. #
    431. # Some examples:
    432. #ErrorDocument 500 "The server made a boo boo."
    433. #ErrorDocument 404 /missing.html
    434. #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    435. #ErrorDocument 402 http://localhost/subscription_info.html
    436. #
    437.  
    438. #
    439. # EnableMMAP and EnableSendfile: On systems that support it,
    440. # memory-mapping or the sendfile syscall is used to deliver
    441. # files.  This usually improves server performance, but must
    442. # be turned off when serving from networked-mounted
    443. # filesystems or if support for these functions is otherwise
    444. # broken on your system.
    445. #
    446. #EnableMMAP off
    447. #EnableSendfile off
    448.  
    449. # Supplemental configuration
    450. #
    451. # The configuration files in the conf/extra/ directory can be
    452. # included to add extra features or to modify the default configuration of
    453. # the server, or you may simply copy their contents here and change as
    454. # necessary.
    455.  
    456. # Server-pool management (MPM specific)
    457.  
    458.  
    459. # Multi-language error messages
    460. #Include conf/extra/httpd-multilang-errordoc.conf
    461.  
    462. # Fancy directory listings
    463.  
    464.  
    465. # Language settings
    466. #Include conf/extra/httpd-languages.conf
    467.  
    468. # User home directories
    469. #Include conf/extra/httpd-userdir.conf
    470.  
    471. # Real-time info on requests and configuration
    472. #Include conf/extra/httpd-info.conf
    473.  
    474. # Virtual hosts
    475. #Include conf/extra/httpd-vhosts.conf
    476.  
    477. # Local access to the Apache HTTP Server Manual
    478.  
    479.  
    480. # Distributed authoring and versioning (WebDAV)
    481. #Include conf/extra/httpd-dav.conf
    482.  
    483. # Various default settings
    484.  
    485.  
    486. # Secure (SSL/TLS) connections
    487. #Include conf/extra/httpd-ssl.conf
    488. #
    489. # Note: The following must must be present to support
    490. #       starting without SSL on platforms with no /dev/random equivalent
    491. #       but a statically compiled-in mod_ssl.
    492. #
    493. <IfModule ssl_module>
    494. SSLRandomSeed startup builtin
    495. SSLRandomSeed connect builtin
    496. </IfModule>
    497.  
    498.  
    499. #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    500. PHPIniDir "C:/php"
    501. LoadModule php5_module "C:/php/php5apache2_2.dll"
    502. #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
    подредактировал твой конфиг, попробуй его вставить в свой.
    Предварительно свой очисти.
    если ты его вставлял до этого времени заново скопируй и вставь, там ты много чего не нужного раскомментировал.

    Добавлено спустя 31 минуту 54 секунды:
    после всех изменений в httpd.conf и php.ini необходимо перезапускать apache сервер.

    Добавлено спустя 5 минут 12 секунд:
    и вообще, там надо начать установку php и apache заново, и быть предельно внимательным. Для начала не помешает осведомиться. Пройдись по документации apache http://httpd.apache.org/docs/2.2/mod/core.html#ifmodule

    Добавлено спустя 6 минут 32 секунды:
    нет, не правильно, твой конфиг должен лежать C:\www\apache\conf
     
  12. kilogram

    kilogram Активный пользователь

    С нами с:
    19 мар 2012
    Сообщения:
    116
    Симпатии:
    0
    Попробовал скопировать ваш код в свой httpd.conf, сохранил, когда пробуешь перезапускать сервер, выдает такое:
    [​IMG]
     
  13. kilogram

    kilogram Активный пользователь

    С нами с:
    19 мар 2012
    Сообщения:
    116
    Симпатии:
    0
    Я понял в чем прикол, оказывается все на местах, проблема в том что в самом .htaccess нужно было ввести не просто DirectoryIndex 100.php
    ,а нужно было так DirectoryIndex index.php 100.php
    Всем спасибо за помощь и за подсказки
     
  14. mahmuzar

    mahmuzar Старожил

    С нами с:
    6 апр 2012
    Сообщения:
    4.631
    Симпатии:
    425
    Адрес:
    РД, г. Махачкала.
    Это Вы про свой конфиг? если да, немыслимо как Вам такое в голову могло придти. На днях сам сталкивался с такой проблемой, но вы такое там натворили, что даже я(начинающий ) удивился. A вот про содержимое .htaccess я ничего не знал, надо было его содержимое выложить сюда, для полной картины всей проблемы.