logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: New User trying to get vhost to work one IP with multi DNS
Author
Dark Smythe



Joined: 24 Nov 2006
Posts: 4
Location: Rochester NY

PostPosted: Fri 24 Nov '06 11:24    Post subject: New User trying to get vhost to work one IP with multi DNS Reply with quote

ok i started out by updating the httpd.conf file properly .... but i guess i am getting something wrong. i have been working by trial and error and i am getting frustrated ... lol i found one website that told me to change a hosts file in my server PC. the solution they offered was to add two line in this files text .... as follows

127.0.0.1 site1.local
127.0.0.1 site2.local

i did this and it seemed to help but now i am getting the 403 forbidden error for the second site that i am running, which is an improvement because i was getting my main websites files for both sites originally. i have alot of questions regaurding how i have my files set up. i get the httpd.conf set up ok to run just one website .... is there anything i need to change there to run two or do i just add the vhost commands in the appropriate spot and let it run ??? .... i know this will all seem very easy to most of you out there but this would be a great help to me ..... thnx a bunch in advance. Smythe
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7306
Location: Germany, Next to Hamburg

PostPosted: Fri 24 Nov '06 13:23    Post subject: Reply with quote

That is a permission problem. Please post you vhost part of your httpd.conf (not the whole httpd.conf)
Back to top
Dark Smythe



Joined: 24 Nov 2006
Posts: 4
Location: Rochester NY

PostPosted: Fri 24 Nov '06 14:03    Post subject: vhost script Reply with quote

here is the current config file for the vhost file .... ??? again i appreciate the help.






NameVirtualHost *:80


<VirtualHost *:80>
ServerAdmin darksmythe@gmail.com
DocumentRoot "C:\Documents and Settings\Smith PC\Desktop\Old PC\My Web Sites\My Webs\mysite20"
ServerName site1.local
ServerAlias meetthesmiths.sytes.net
ErrorLog logs/meetthesmiths.sytes.net-error_log
CustomLog logs/meetthesmiths.sytes.net-access_log common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin darksmythe@gmail.com
DocumentRoot "C:\Documents and Settings\Smith PC\My Documents\My Web Sites\mysite2"
ServerName site2.local
ServerAlias houseatreides.sytes.net
ErrorLog logs/houseatreides.sytes.net-error_log
CustomLog logs/houseatreides.sytes.net-access_log common
</VirtualHost>
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Fri 24 Nov '06 16:29    Post subject: Reply with quote

Your directory names have backslashes in them:
Quote:
DocumentRoot "C:\Documents and Settings\Smith PC\Desktop\Old PC\My Web Sites\My Webs\mysite20"


Apache requires that these be forward-slash characters, even on Windows:
Quote:
DocumentRoot "C:/Documents and Settings/Smith PC/Desktop/Old PC/My Web Sites/My Webs/mysite20"

per: Customizing Apache for Windows.

-tom-
Back to top
Dark Smythe



Joined: 24 Nov 2006
Posts: 4
Location: Rochester NY

PostPosted: Fri 24 Nov '06 22:01    Post subject: tried it .... Reply with quote

tried changing the "\" in the vhost section ..... to "/"... i guess i am not sure but do i need to change the same in the httpd.conf for the original documentroot ???? i will try it out and see what happens .... so far i am getting the same end result .... [url]http.houseatreides.sytes.net[/url] ... back to the drawing board.... lol
Back to top
pnllan



Joined: 05 Dec 2005
Posts: 221

PostPosted: Sat 25 Nov '06 8:43    Post subject: Reply with quote

Smythe,

You have two people who are great (tdonovan and James Blond) at doing this. So be patient as they will definitely help you get where you are trying to go.

What version of Apache are you using? What version of Windows?

What do you have as far as permissions in the CONF file with regards to each folder/directory of the Doc Roots?

For Example:
Code:
<Directory "X:/Documents and Settings/Smith PC/My Documents/My Web Sites/mysite2">
  Options FollowSymLinks Indexes
  Allow from all
  Order allow,deny
  AllowOverride None
</Directory>

Final Note: If you plan on using Perl, you will need to use folder names that DO NOT include spaces as Perl is VERY cranky about using folder names of that variety - INFO U
Back to top
Dark Smythe



Joined: 24 Nov 2006
Posts: 4
Location: Rochester NY

PostPosted: Sat 25 Nov '06 18:10    Post subject: Reply with quote

THAT WAS IT !!!!!!!!!!!!!!!!!!! you guys rock on .... i forgot to set the permissions for the second site. ROCK ON !!! i really appreciate the help everything is running smooth ...... one thing i was wondering tho ..... i changed the one file on my server pc "Hosts" ....did that file need to be changed or should i change it back ???? i just don't want to do anything unnessicary if i dont need to. after that i am all set .... lol thanks again
Back to top


Reply to topic   Topic: New User trying to get vhost to work one IP with multi DNS View previous topic :: View next topic
Post new topic   Forum Index -> Apache