TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-06-2009, 12:43 AM   #1 (permalink)
The Contributor
 
planepixel's Avatar
 
Join Date: Feb 2009
Posts: 28
Thanks: 10
planepixel is on a distinguished road
Default apache virtual host

Hi i need to setup a virtual host on my system. i am running xampp and saved following code in httpd.conf ,
added "127.0.0.1 zendblog.localhost"
and restarted apache but it is not working.


Code:
<VirtualHost *:80>
    DocumentRoot "c:/xampp/htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "c:/xampp/htdocs/zendblog/public"
    ServerName zendblog.localhost
</VirtualHost>
in address bar i am writing zendblog.localhost

what i am doing wrong in the setup?
please advise
thanks
planepixel is offline  
Reply With Quote
Old 02-06-2009, 01:49 AM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

I do something like the following. It's not currently set up, but in my old Apache config I see I did the following:

Code:
NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
   DocumentRoot "C:\wamp\www\TalkPHP"
   ServerName talkphp.localhost
</VirtualHost>
Don't forget to restart Apache once modified.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
planepixel (02-06-2009)
Old 02-06-2009, 02:11 AM   #3 (permalink)
The Contributor
 
planepixel's Avatar
 
Join Date: Feb 2009
Posts: 28
Thanks: 10
planepixel is on a distinguished road
Default

Thanks. in the mean time i was also searching for help on internet and found this link.
Name Based Virtual Host Guide

i was not using NameVirtualHost 127.0.0.1 directive which is must if name based virtual hosts are needed.

thanks for your help.
planepixel is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Directory Support? delayedinsanity General 4 11-08-2012 09:04 PM
Apache down! Apache down! delayedinsanity General 1 05-04-2008 09:24 PM
virtual memory leak shiggle Absolute Beginners 2 02-26-2008 08:55 AM
Host Upgraded - File Upload won't work now gillweb General 7 02-25-2008 03:53 AM
im looking for a cheap host sarmenhb General 21 02-03-2008 03:48 AM


All times are GMT. The time now is 04:20 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design