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: Using UNC Path in Directory |
|
Author |
|
HrTrabjerg
Joined: 17 Dec 2012 Posts: 4 Location: Denmark, Nørresundby
|
Posted: Tue 18 Dec '12 10:21 Post subject: Using UNC Path in Directory |
|
|
Hi!
I have a little problem here. Earlier I made a setup using UNC path in my Apache configuration. I managed to make this work. Now on another installation using Apache 2.2.22 nothing works like before.
This is how my configuration looks like:
Code: |
Alias /icp-tm/test //THTOMCAT/webapps/test/WEB-INF/public
<Proxy balancer://thin_cluster_test>
BalancerMember http://192.168.12.22:6000/icp-tm/test
</Proxy>
<Directory //THTOMCAT/webapps/test/WEB-INF/public>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
RewriteEngine on
RewriteBase /icp-tm/test
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ %{DOCUMENT_ROOT}/system/maintenance.html [L]
RewriteRule ^birt/(.*)$ http://192.168.12.22:8080/test/birt/$1 [QSA,P,L]
RewriteRule ^/$ index.html [QSA]
RewriteRule ^/s([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ balancer://thin_cluster_test/$1 [P,QSA,L]
</Directory>
ErrorLog logs/icp-test_tm_error.log
CustomLog logs/icp-test_tm_access.log combined
|
With the above conf. the Apache service fails and Eventviewer reports:
Quote: | The Apache service named reported the following error:
>>> <Directory "//THTOMCAT/webapps/test/WEB-INF/public"> path is invalid. |
I have had this working before... or something similar. If I change the path to \ (backslash) the Apache service will start, but the website will not show. I get this error:
Quote: |
[Mon Dec 17 15:50:21 2012] [error] [client 192.168.12.23] client denied by server configuration: C:/empty/ |
Please help
Thanks
-M |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Tue 18 Dec '12 10:36 Post subject: |
|
|
Creat a user for Apache to run under, then in Admin Tools -> Services -> Apache2.2 -> Properties -> Log On -> This Account
Set the Apache service to run under the created user, that will allow Apache to access shares. See down a way in this section of the Windows notes.
http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc |
|
Back to top |
|
HrTrabjerg
Joined: 17 Dec 2012 Posts: 4 Location: Denmark, Nørresundby
|
Posted: Tue 18 Dec '12 11:24 Post subject: |
|
|
glsmith wrote: | Creat a user for Apache to run under, then in Admin Tools -> Services -> Apache2.2 -> Properties -> Log On -> This Account
Set the Apache service to run under the created user, that will allow Apache to access shares. See down a way in this section of the Windows notes.
http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc |
Ohh dear... I can't remember I ever changed the account, but it works.
Thanks a lot dude.
Merry christmas
-M |
|
Back to top |
|
HrTrabjerg
Joined: 17 Dec 2012 Posts: 4 Location: Denmark, Nørresundby
|
Posted: Tue 18 Dec '12 14:23 Post subject: |
|
|
Okay this is crazy
I can use a domain admin user and it works, but eventviewer still posts:
Quote: | The Apache service named reported the following error:
>>> <Directory "//THTOMCAT/webapps/test/WEB-INF/public"> path is invalid.
|
I can't make it start if I follow the guide you linked to.
Quote: |
Create a normal domain user account, and be sure to memorize its password.
Grant the newly-created user a privilege of Log on as a service and Act as part of the operating system. On Windows NT 4.0 these privileges are granted via User Manager for Domains, but on Windows 2000 and XP you probably want to use Group Policy for propagating these settings. You can also manually set these via the Local Security Policy MMC snap-in.
Confirm that the created account is a member of the Users group.
Grant the account read and execute (RX) rights to all document and script folders (htdocs and cgi-bin for example).
Grant the account change (RWXD) rights to the Apache logs directory.
Grant the account read and execute (RX) rights to the httpd.exe binary executable.
|
I found my old installation. It runs 2.2.21 and not 2.2.22 like the new one.
The same configuration runs with local system, but that share is also on the same server, since it's just a test setup. There I get no errors in the Eventviewer.
I could live with the error, but Apache should not run with a domain admin user. Help!
Thanks
-M |
|
Back to top |
|
HrTrabjerg
Joined: 17 Dec 2012 Posts: 4 Location: Denmark, Nørresundby
|
Posted: Tue 18 Dec '12 17:00 Post subject: |
|
|
Wuuhuu... it's working. I guess I did as the guide told, but now it's working.
Thanks.
-M |
|
Back to top |
|
|
|
|
|
|