Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

virtual host/documentRoot

Status
Not open for further replies.

conntaxman

Programmer
Aug 7, 2003
55
0
0
US
VirtualHost / DirectRoot /paths...I cant seem to understand the paths as good as i should.would like some help.
I have apahce 2.0 running and have my index page showing up on the web.But now I want to put ALL my html files on my own server.I use DYN to keep my IP the same.router set up correct.
my copy of V.H.
###################

# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost
container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
<VirtualHost *:192.168.1.20>
ServerAdmin conntaxman@yahoo.com
DocumentRoot /Apache
Group/Apache2/htdocs/homerepairs/site/webpages
# DocumentRoot /Apache Group/Apache2/htdocs/homerepairs/site/webpages
ServerName homerepairs.is-a-geek.net
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log
commom
#</VirtualHost>
##################################################
The <VirtualHost *:192.168.1.20> ip number is what I put
in for my server Behind the router.
I made my folders in
-htdocs
-homerepairs
-site
webpages [html files are here]
thank you very much for the help
Been going nuts and getting frustrated.sure would like some help.
Thank you very much.
Johnny
conntaxman@yahoo.com



When I put a link and try to get info from my "webpages" folder,it will just come back Page cannot be displayed.
 
ah S--- Can't get any pages that I put in any folders
that I made in htdocs.
page not listed.
testpage2
or
testpage2
I could get them out only if they are in the htdocs
images i could get out of other folders.
############
##############
and that works for the image.
I have no idea now.
I found out that there are no permissions on or for
apache when useing IE."XP"
Thanks again.
It's got to be something small.lol
i don't know.\
Johnny
sorry to bother.but I cant figure it out.
Ill keep tring.
 
my mistake....the image dose not come up,I had the
same image in 2 different folders.
i put a image of a hammer in the folder"homerepairs"
and cant call it up.
aw s----
I thought V H was filled out right.
Got any more ideas?
I ran out.
I cant see re-installing apache,because its working.
For htdocs.
tks
Johnny
 
I got it going.I had to change this
UserDir "htdocs/homerepairs"
#UserDir "homerepairs"
#
#changed line above homerepairs to htdocs/homerepairs
......................
and now I get my html pages and images.
and the image comes up
ALL done,ya baby got it.
But I do have to thank everyone here for all
the help.
Great bunch of guys.
Thank you again.
I just hope that I can help someone with what little \
i know.
TKS AGAIN
Johnny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top