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: naming and importing files issues
Author
mikehende



Joined: 05 Feb 2009
Posts: 16
Location: NYC

PostPosted: Fri 06 Feb '09 1:25    Post subject: naming and importing files issues Reply with quote

Please help:

1] If I am working on two or more sites at the same time, how do I name the individual "index" files before placing them into Apache's htdocs folder? For example if one site I am working on is about "tools" and the other is about "cars" then do I name them

toolsindex.html?

and

carsindex.html?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 06 Feb '09 1:56    Post subject: Reply with quote

how about

.../htdocs/tools/index.html
.../htdocs/cars/index.html

http://localhost/tools
http://localhost/cars

???
Back to top
mikehende



Joined: 05 Feb 2009
Posts: 16
Location: NYC

PostPosted: Fri 06 Feb '09 2:06    Post subject: Reply with quote

not sure if I understand you correctly, I wish to know exactly what to name both index files themselves before importing them into the htdocs folder, from what you wrote I am guessing those are the file "path"? Please confirm, thanks.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 06 Feb '09 2:15    Post subject: Reply with quote

look close at that post

1. I created a folder named tools inside the htdocs folder of Apache (../htdocs/tools/index.html)
2. I created a folder named cars inside the htdocs folder of Apache (../htdocs/cars/index.html)

that leaves two different index.html files in two different folders
then

3. I used the URL http://localhost/tools
4. I used the URL http://localhost/cars

http://localhost = C:\path-to-apache\htdocs
http://localhost/tools = C:\path-to-apache\htdocs\tools
http://localhost/one/two/three = C:\path-to-apache\htdocs\one\two\three

http://httpd.apache.org/docs/2.2/urlmapping.html
Back to top
mikehende



Joined: 05 Feb 2009
Posts: 16
Location: NYC

PostPosted: Fri 06 Feb '09 2:50    Post subject: Reply with quote

Got it, thank you!!
Back to top


Reply to topic   Topic: naming and importing files issues View previous topic :: View next topic
Post new topic   Forum Index -> Apache