Wrox Programmer Forums
BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9
This is the forum to discuss the Wrox book Professional Search Engine Optimization with PHP: A Developer's Guide to SEO by Cristian Darie, Jaimie Sirovich; ISBN: 9780470100929
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 10th, 2010, 03:29 PM
Registered User
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default httpd-vhosts.conf

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:
NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
#DocumentRoot "C:/apache/xampp/htdocs" doesn't work
DocumentRoot "C:\XAMpp\xampp\htdocs"

<VirtualHost *:80>
ServerName read.local
DocumentRoot "c:\seophp"
#DocumentRoot "I:/My Documents/websites/read" doesn't work
ServerAdmin [email protected]
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
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] 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?

Last edited by Brainerd; January 11th, 2010 at 01:16 AM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd: Syntax error on line 54 j0hn_gr BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 June 24th, 2009 02:28 PM
httpd.cong sandeepgreaternoida BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 March 29th, 2009 05:33 PM
Warning: opendir(c: Inetpub vhosts f5only Beginning PHP 0 December 17th, 2007 12:27 AM
Oracle Login Conf anandham Oracle 1 December 18th, 2005 11:36 PM
apache tomcat dev directory conf schradermj11 Apache Tomcat 0 November 21st, 2005 10:54 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.