Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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:
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?

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 03:28 PM
httpd.cong sandeepgreaternoida BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 March 29th, 2009 06: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



All times are GMT -4. The time now is 09:53 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.