Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Alias connections |
|
Author |
|
jpaxtons
Joined: 17 May 2008 Posts: 4 Location: Kansas City
|
Posted: Sat 17 May '08 19:31 Post subject: Alias connections |
|
|
Greetings!
Having difficulty connecting to an Alias.
Environment:
I have my apache server (on Windows) and two file servers on my network. One of these is a Linux machine running Samba and I have a share defined that works just fine
In my httpd.conf:
Alias /mediafiles "//rainbow/mediafiles"
<Directory "//rainbow/mediafiles">
Order allow,deny
Allow from all
</Directory>
This all works fine. I can substitute the actual IP address and that works too.
I established a second machine running Windows 2000 Pro with the name rainbow2. Set up a similar share and directory structure.
But when I modify my httpd.conf to:
Alias /mediafiles "//rainbow2/mediafiles"
<Directory "//rainbow2/mediafiles">
Order allow,deny
Allow from all
</Directory>
Apache refuses to start.
Looking at rainbow and rainbow2 in Network Neighborhood/Windows Explorer, they look identical except for the name.
I have tried the IP address (one number different than rainbow) and that does not work either.
Must be something simple I have overlooked.
Maybe someone has an idea where I should look?
Thanks,
Have fun,
Paxton |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sat 17 May '08 20:10 Post subject: |
|
|
... and the error log says something like:
Syntax error on line ### of [Apache]/conf/httpd.conf:
<Directory "//rainbow2/mediafiles"> path is invalid.
Yes? |
|
Back to top |
|
jpaxtons
Joined: 17 May 2008 Posts: 4 Location: Kansas City
|
Posted: Sat 17 May '08 20:45 Post subject: |
|
|
Greetings!
Thanks for the response.
No, syntax is OK httpd.conf checks oK
I now believe the issue is Windows share permissions.
I am using simple PTP workgroup network and although I have not found
what is wrong, I think it is some sort of a Windows permission problem that is not allowing Apache to make the connection with rainbow2 as it does with rainbow
So, I am thinking my problem is really a Windows permission problem.
Any other ideas?
Have fun,
Paxton |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Sun 18 May '08 2:31 Post subject: |
|
|
That is not a syntax error in the true meaning, it is a syntax error because path is not found. Path is not found because local services cannot access the network.
http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc
Quote: |
By default, all Apache services are registered to run as the system user (the LocalSystem account). The LocalSystem account has no privileges to your network via any Windows-secured mechanism, including the file system, named pipes, DCOM, or secure RPC. It has, however, wide privileges locally.
|
see the stuff under the quoted text in the provided link. It is for Windows Server but it can be done on Pro versions as well. You will need to add the user to the 2000 machine as well. Windows Home versions will be challenging and most likely impossible w/o giving Apache admin privileges which you do not want to do. |
|
Back to top |
|
jpaxtons
Joined: 17 May 2008 Posts: 4 Location: Kansas City
|
Posted: Mon 19 May '08 16:14 Post subject: |
|
|
glsmith,
Thank you very much for the detailed explanation. I had come to the conclusion it was something like that, and with your help I can now track down a way to do it.
Have fun,
Paxton |
|
Back to top |
|
|
|
|
|
|