Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Problem setting up virtual directories

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  SNORT - Prevent Webdav And Other Exploits  
Author Message
tony11

External


Since: Apr 09, 2004
Posts: 1



(Msg. 1) Posted: Fri Apr 09, 2004 10:24 pm
Post subject: Problem setting up virtual directories
Archived from groups: alt>apache>configuration (more info?)

Hi,

I'm trying to learn PHP/MySQL and have installed Apache on my PC to act as
my server.

All is well until I try to set up virtual directories to hold each of the
websites I create so that I access them by using http:// sitename, but all I
get when when I type the http address in a Web browser is an error 404 -
page not found.

I've edited the httpd.conf file as follows:

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin webmaster.RemoveThis@site_name_here.co.uk
DocumentRoot /websites/site_directory_here/
ServerName site_name_here
</VirtualHost>

and the Windows HOSTS file to include:

127.0.0.1 site_name_here

and restarted the Apache server - to no avail.

What am I doing wrong? All help gratefully recived!
Thanks.
Tony.

 >> Stay informed about: Problem setting up virtual directories 
Back to top
Login to vote
purlgurl

External


Since: Oct 24, 2003
Posts: 127



(Msg. 2) Posted: Fri Apr 09, 2004 10:24 pm
Post subject: Re: Problem setting up virtual directories [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony Carnell wrote:

(snipped)

 > All is well until I try to set up virtual directories to hold each of the
 > websites I create so that I access them by using <a style='text-decoration: underline;' href="http://" target="_blank">http://</a> sitename, but all I
 > get when when I type the http address in a Web browser is an error 404 -
 > page not found.


<a style='text-decoration: underline;' href="http://www.purlgurl.net/manual/vhosts/" target="_blank">http://www.purlgurl.net/manual/vhosts/</a>


Purl Gurl<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Problem setting up virtual directories 
Back to top
Login to vote
google5

External


Since: May 06, 2004
Posts: 19



(Msg. 3) Posted: Fri Apr 09, 2004 10:24 pm
Post subject: Re: Problem setting up virtual directories [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Tony Carnell" <tony DeleteThis @fluvius.co.uk> wrote in message news:<eTBdc.48911$Id.16471@news-binary.blueyonder.co.uk>...
 > Hi,
 >
 > I'm trying to learn PHP/MySQL and have installed Apache on my PC to act as
 > my server.
 >
 > All is well until I try to set up virtual directories to hold each of the
 > websites I create so that I access them by using <a style='text-decoration: underline;' href="http://" target="_blank">http://</a> sitename, but all I
 > get when when I type the http address in a Web browser is an error 404 -
 > page not found.
 >
 > I've edited the httpd.conf file as follows:
 >
 > NameVirtualHost *:80
 >
 > <VirtualHost *:80>
 > ServerAdmin webmaster DeleteThis @site_name_here.co.uk
 > DocumentRoot /websites/site_directory_here/
 > ServerName site_name_here
 > </VirtualHost>
 >
 > and the Windows HOSTS file to include:
 >
 > 127.0.0.1 site_name_here
 >
 > and restarted the Apache server - to no avail.

What does the apache error log say?

Is /websites/site_diretory_here/ a pathname relative to the root of the
filesystem? (Not the ServerRoot or main DocumentRoot)

Joshua.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Problem setting up virtual directories 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Fri Apr 09, 2004 11:11 pm
Post subject: Re: Problem setting up virtual directories [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony Carnell <tony.TakeThisOut@fluvius.co.uk> wrote:
 > I've edited the httpd.conf file as follows:
 > and restarted the Apache server - to no avail.

Did you tried an apachectl configtest to check for accuracy of the
configuration file? Do you have an index.html in the document
root directory? Do you have a <Directory> block in your VHost
block to specify how to manage the DocumentRoot?

And if you want just one server, why bother with VHost? Just
use ServerName in the 'main' configuration block and set
UseCanonicalName off

Davide

--
| Vail's Second Axiom: The amount of work to be done increases in
| proportion to the amount of work already completed.
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Problem setting up virtual directories 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
problem with setting up named virtual domains - I'm having a problem with setting up named virtual domains. The virtual domains default to the global doc path, not the doc path in the VirtualHost directive. The steps I took: 1. I commented out the global ServerName directive, leaving the global..

Setting up virtual hosts on Apache - Hello everyone, I've a question which I'm sure the experienced among you will know the answer to immediately. I'm attempting to develop several sites on my laptop, with the assets for each in a different folder. I want to make each of these folders a..

setting up virtual directories and user logins - I'm familiar with the httpd.conf, but very new to setting up virtual directories for separate qualified domains. If I can get some suggestions, or pointed to a source to help me out I'd appreciate it. What I'm wanting to do set up my Web host to host..

Virtual Host Problem - OK I have a web server that up until now served 1 web page. However the company needed to expand and needed to add a few other sites to handle customers and employees. So I added a few virtual host sections for the new sites. I also transfered the old..

problem with virtual hosts - Hello, I have a problem with my httpd.conf, I don't understand why my 2 virtualhots go to the same page and the DocumentRoot is different for the 2 virtual hosts. (I've put some "xxx" for som confidentiality ..sorry..) Thanks. Bye :-) ..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]