🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.www.server-side
Article #61484

Apache próbuje pobierać index.php z /var/www/html a nie z ~/public_html

#61484
From: jivanmukta
Date: Thu, 16 Jun 2016 17:21
17 lines
2238 bytes
Używam Apache2 z userdirs pod Ubuntu. 
Mam w /home/robert/public_html aplikację PHP (CodeIgniter).
Adres localhost/~robert/index.php działa. Adres localhost/~robert/index.php/announcement/index również.
Chciałbym usunąć index.php z urla. W tym celu zmodyfikowałem plik ~robert/public_html/.htaccess, tzn dopisałem:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|robots\.txt|denial\.html|resources|captcha)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

Adres localhost/~robert otwiera się.
Problem: przy próbie otwarcia localhost/~robert/announcement/index mam 404 Not found. 
W error.log'u Apache'a mam: script '/var/www/html/index.php' not found or unable to stat.
Nie wiem dlaczego Apache próbuje pobierać index.php z /var/www/html a nie z ~robert/public_html.
Byłbym wdzięczny za pomoc.
Technical Details
Message-ID: <1a783e36-616b-4c0f-86c9-d757d3542a2d@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!v48no2890424qgd.0!news-out.google.com!v8ni448qgv.0!nntp.google.com!v48no2890419qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Received: by 10.157.55.183 with SMTP id x52mr724946otb.38.1466097694181;        Thu, 16 Jun 2016 10:21:34 -0700 (PDT)
X-Received: by 10.140.92.131 with SMTP id b3mr268908qge.8.1466097694041; Thu, 16 Jun 2016 10:21:34 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!v48no2890424qgd.0!news-out.google.com!v8ni448qgv.0!nntp.google.com!v48no2890419qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.www.server-side
Date: Thu, 16 Jun 2016 10:21:33 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.28.26.5; posting-account=Y8V58QoAAACtLuF8lEt8MaiUjYUTCWP6
NNTP-Posting-Host: 83.28.26.5
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1a783e36-616b-4c0f-86c9-d757d3542a2d@googlegroups.com>
Subject: Apache próbuje pobierać index.php z
 /var/www/html a nie z ~/public_html
From: jivanmukta@poczta.onet.pl
Injection-Date: Thu, 16 Jun 2016 17:21:34 +0000
X-Received-Bytes: 2080
X-Received-Body-CRC: 2998495983
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit