open folder on client PC

Problems with the Windows version of XAMPP, questions, comments, and anything related.

open folder on client PC

Postby jack_lunn » 13. May 2015 17:12

Is it possible to open a windows explorer folder from a URL?
The folder is on a mapped drive on the XAMPP server.

I think it can be done by changing Apache httpd.conf

I have this in the conf..
#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
AllowOverride none
Require all denied
</Directory>

and it works fine, but if I add..

Alias /subfolder2 C:/folder2/subfolder2
<Directory "C:/folder2/subfolder2">
Options FollowSymLinks +Indexes
Order Allow,Deny
Allow from All
AllowOverride All Indexes Options
</Directory>

Apache will not start.
jack_lunn
 
Posts: 4
Joined: 13. May 2015 15:08
Operating System: Win7

Re: open folder on client PC

Postby Nobbie » 13. May 2015 17:16

jack_lunn wrote:Apache will not start.


Look into the error log file and you will see a detailed error message. I would say, that "AllowOverride All Indexes Options" is invalid, only "AllowOverride All" should do it.
Nobbie
 
Posts: 8766
Joined: 09. March 2008 13:04

Re: open folder on client PC

Postby jack_lunn » 20. May 2015 16:11

Thanks Nobbie for your interest. I'm sorry but I haven't been able to look at this for a few days.
I have tried to reproduce the error and it has happened again.
It works fine without the alias and directory and even with your suggestion to use only "AllowOverride All" Apache just will not start!
Also there is nothing in the Apache error.log !!!
I have tried starting and stopping Apache and adding and deleting 'alias and directory' lines to httpd.conf but always with the original result -- all works fine until I modify httpd.cong.
jack_lunn
 
Posts: 4
Joined: 13. May 2015 15:08
Operating System: Win7

Re: open folder on client PC

Postby Altrea » 20. May 2015 16:42

Hi,

Try to start Apache with the apache_start.bat script instead of the control panel.
This script will response with an error message why Apache could not get started.

Best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8288
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: open folder on client PC

Postby jack_lunn » 21. May 2015 09:12

I closed Apache from the control panel and then tried the batch script.
The apache_start.bat script would not complete - it hung at 'echo Apache 2 is starting ...'
I stopped the batch from Task Manager.
I started Apache again as usual from control panel and below is the error.log
Not much help ??? I think
[Thu May 21 09:04:57.202933 2015] [mpm_winnt:notice] [pid 7324:tid 264] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Thu May 21 09:04:59.205048 2015] [mpm_winnt:notice] [pid 4776:tid 272] AH00364: Child: All worker threads have exited.
[Thu May 21 09:04:59.241050 2015] [mpm_winnt:notice] [pid 7324:tid 264] AH00430: Parent: Child process 4776 exited successfully.
[Thu May 21 09:05:39.214336 2015] [ssl:warn] [pid 8564:tid 388] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu May 21 09:05:39.518354 2015] [ssl:warn] [pid 8564:tid 388] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu May 21 09:05:39.565356 2015] [mpm_winnt:notice] [pid 8564:tid 388] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
[Thu May 21 09:05:39.565356 2015] [mpm_winnt:notice] [pid 8564:tid 388] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Thu May 21 09:05:39.565356 2015] [core:notice] [pid 8564:tid 388] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu May 21 09:05:39.615359 2015] [mpm_winnt:notice] [pid 8564:tid 388] AH00418: Parent: Created child process 8604
[Thu May 21 09:05:40.632417 2015] [ssl:warn] [pid 8604:tid 280] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu May 21 09:05:40.934435 2015] [ssl:warn] [pid 8604:tid 280] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu May 21 09:05:41.001439 2015] [mpm_winnt:notice] [pid 8604:tid 280] AH00354: Child: Starting 150 worker threads.
jack_lunn
 
Posts: 4
Joined: 13. May 2015 15:08
Operating System: Win7

Re: open folder on client PC

Postby Nobbie » 21. May 2015 11:23

>all works fine until I modify httpd.cong.

How do you modify httpd.conf? Which tool do you use to insert or delete lines?
Nobbie
 
Posts: 8766
Joined: 09. March 2008 13:04

Re: open folder on client PC

Postby mark.mcdonald » 21. May 2015 14:30

Notepad / Wordpad/ Notepad++
mark.mcdonald
 
Posts: 160
Joined: 13. March 2015 15:48
Location: Edmonton
Operating System: Windows Server 2012 R2

Re: open folder on client PC

Postby jack_lunn » 22. May 2015 08:45

I use XAMPP Control Panel
I hit Config on Apache row
I choose Apache (httpd.conf)
This opens file in Notepad which I modify and save.
Then Quit and reload.

All OK at the moment with ...
#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
AllowOverride none
Require all denied
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
# 13/05/2015 10.22
#Alias /subfolder2 C:/folder2/subfolder2
#<Directory "C:/folder2/subfolder2">
# Options FollowSymLinks +Indexes
# Order Allow,Deny
# Allow from All
# AllowOverride All
#</Directory>
jack_lunn
 
Posts: 4
Joined: 13. May 2015 15:08
Operating System: Win7

Re: open folder on client PC

Postby s-light » 24. May 2015 10:15

out of curiosity - try to write the C: as c:
Code: Select all
Alias /subfolder2 "c:/folder2/subfolder2"
<Directory "c:/folder2/subfolder2">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

i don't know if the words are case-sensitve.. but in my old config i had written theme as i corrected theme above..
and normaly i found that the error_log or access_log shows about every error message...

sunny greetings
stefan
s-light
 
Posts: 3
Joined: 10. May 2015 10:12
Location: Nürnberg, Bayern, Germany
Operating System: Kubuntu 15.04 64bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: suze5544 and 73 guests