|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
I have Apache running on an old computer on my LAN and I would like to know how to make Apache serve form another computer's external hard drive on my LAN. The target to the folder on the other computer looks like this, \\Alex-desktop\Alex's Documents. But if I put that into the config file for the folder to serve from it doesn't work. How can I accomplish this?
thanks
__________________
Case...Cooler Master Centurion 5 | PSU...Corsair TX750 Mobo............Gigabyte GA-MA69G-S3H CPU..............AMD Athlon 64 X2, OC @ 3.0ghz RAM.............2gb Gskill DDR2 800 CPU Cooler...Zalman 9700 GPU.............Sapphire 4870HD Monitor.........22" Acer LCD Storage........500gb Seagate DVD.............Lite On DVD Burner Windows Vista 64 bit |
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Apache won't run on UNC paths. You either have to use an IP address or hostname.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#3 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
How can I do that? All the computers on my LAN have static IP addresses.
|
|
|
|
|
|
#4 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Instead of referring to the computer name, use the IP address
http://192.x.x.x/ or whatever your IP addressing scheme would be. But...you would have to have the apache service running on the computer that is hosting it. You can't just make a copy of an apache installation and expect it to run without an actually installation. |
|
|
|
|
|
#5 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
I tried this path, http://192.168.0.104/Alex's Documents/HTDOCS, and Apache said it the document root folder needs to be a directory. I have Apache running on an old computer just for serving the web page and I am trying to get it to serve from an external hard drive on a different computer. Apache works and serves the web page when it is on the computer's C drive, I just would like to keep all the website data on my external hard drive because the serving computer has a small hard drive.
|
|
|
|
|
|
#6 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
|
|
|
|
|
|
#7 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
Do you mean the folder where index.html is? It is in folder HTDOCS. I've tried everything I can think of and it still says document root must be a directory.
|
|
|
|
|
|
#8 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
you can't access it as a server share. The document root is always the base address/url
What comes up when you go here: http://192.168.0.104/ |
|
|
|
|
|
#9 | |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
Quote:
|
|
|
|
|
|
|
#10 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
nono..when you visit the IP address of the computer hosting apache...what happens?
|
|
|
|
|
|
#11 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
It shows the web page that I set it to serve from the C drive for now on the host computer. The IP address of the computer running Apache is 192.168.0.105.
|
|
|
|
|
|
#12 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
ok, if that's the computer hosting apache, then that's where the web files you want to host have to live.
|
|
|
|
|
|
#13 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
So I can't have files availible on the web from the other computer through the one running Apache?
|
|
|
|
|
|
#14 | |
|
Member (11 bit)
Join Date: Apr 2003
Location: Iowa
Posts: 1,652
|
Quote:
http://www.thewebhostinghero.com/tut...che-alias.html
__________________
LP |
|
|
|
|
|
|
#15 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
The drive is shared I just want the document root folder to be located on the shared drive, is that possible?
|
|
|
|
|
|
#16 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
If it's possible, it probably won't be simple to implement. Why don't you just move the drive, copy over the files, or host apache on the computer with the external drive?
|
|
|
|
|
|
#17 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
Thanks for your help.
I'll just find another hard drive for the computer hosting Apache.
|
|
|
|
|
|
#18 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
It doesn't have to be on a seperate drive. You can set a directory as the root.
|
|
|
|
|
|
#19 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
I know, my web server has a small hard drive but it should be fine for a while, anyways I got my website up and running with no-ip free dns. Now I just need to build a nice website, lol.
|
|
|
|
|
|
#20 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
If you're hosting for the public internet, you're better off using a cheap host, rather than your personal rig...security issues and the like.
I have a $6/mo account with surpasshosting.com, which would probably be more than enough for what you want to do. |
|
|
|
|
|
#21 |
|
Member (10 bit)
Join Date: Jan 2007
Location: Western PA
Posts: 691
|
I have the web server running on a 8 year old Pentium 3 machine. I would never run a web server on my own PC for the obvious security reasons.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|