I am on Page 9 in the book and have some questions on step 3. Configuring a Virtual Host for seophp:
My httpd-vhosts.conf now looks like:
I found the thread below mine (my apologies for not reading that first). Anway, here is what my new httpd-vhosts.conf looks like now:
Quote:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
#DocumentRoot "C:/apache/xampp/htdocs" doesn't work
DocumentRoot "C:\XAMpp\xampp\htdocs"
</VirtualHost>
<VirtualHost *:80>
ServerName read.local
DocumentRoot "c:\seophp"
#DocumentRoot "I:/My Documents/websites/read" doesn't work
ServerAdmin webmaster@dummy-host2.example.com
ErrorLog "C:\XAMpp\xampp\apache\logs\read.local"
#<Directory "I:/MyDocuments/websites/read"> doesn't work
<Directory "c:\seophp">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
|
Everything is working and the only strange looking entry in my apache error log file is:
[Mon Jan 11 22:32:33 2010] [error] [client 127.0.0.1] script 'C:/XAMpp/xampp/htdocs/test.php' not found or unable to start
The problem is that when I enter
http://seophp.example.com/test.php I get a 404 error. I made a little index.html file to test and when I enter
http://seophp.example.com/index.html I see "It Works." -It should say "My Index File for Search Engine Optimization with PHP"
Judging by the contents of index.html this reading from the c:\XAMpp\xampp\htdocs folder. Can someone point me to where I can fix that?