LINUX.ORG.RU

Ответ на: комментарий от noname_user

httpd.conf:
http://pastebin.com/wVUFRLEV

httpd-vhosts.conf:

NameVirtualHost *:80

#this first virtualhost enables: http://127.0.0.1, or: http://localhost, 
#to still go to /srv/http/*index.html(otherwise it will 404_error).
#the reason for this: once you tell httpd.conf to include extra/httpd-vhosts.conf, 
#ALL vhosts are handled in httpd-vhosts.conf(including the default one),
# E.G. the default virtualhost in httpd.conf is not used and must be included here, 
#otherwise, only domainname1.dom & domainname2.dom will be accessible
#from your web browser and NOT http://127.0.0.1, or: http://localhost, etc.
#


<VirtualHost *:80>
    DocumentRoot "/home/foozzi/public_html"
    ServerAdmin root@localhost
    ServerName foozzi.com
    ServerAlias foozzi.com
    ErrorLog "/var/log/httpd/127.0.0.1-error_log"
    CustomLog "/var/log/httpd/127.0.0.1-access_log" common
    <Directory /home/foozzi/public_html/>
      DirectoryIndex index.htm index.html index.php
      AddHandler cgi-script .cgi .pl
      Options ExecCGI Indexes FollowSymLinks MultiViews +Includes
      AllowOverride None
      Order allow,deny
      Allow from all
    </Directory>
</VirtualHost>

noname_user ★★★
() автор топика

логи rewrite включи и смотри

gorilych ★★
()
Ответ на: комментарий от noname_user

Наверное, нет index.php там, где он ожидается. Можно ещё указать флаг L для RewriteRule, чтобы прекратить обработку других правил (если есть или если будут).

Ну и для полного счастья можно временно включить логгирование правил перезаписи:

RewriteLog /tmp/rewrite.log
RewriteLogLevel 2
Slavaz ★★★★★
()
Ответ на: комментарий от Slavaz
RewriteEngine On

RewriteLog /tmp/rewrite.log
RewriteLogLevel 2

RewriteRule page1.html page2.html

по идее в page1 должно все отображатся что в page2 , но ничего не происходит, просто загружается page1, логи не создаюстся.

noname_user ★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.