How can I access a networked www?
Posted by: aqk (192.95.195.---)
Date: August 24, 2015 12:35AM

I have a slightly different problem than the usual networked WAMPSERVER:

My Wampserver is on my local hard disk, but the WWW directory is on a network fileserver-

in this case W:\ which is a folder on a small Raspberry Pi running Rasbian, where I keep much of my important data, accessible from any of my three Windows machines

W: is set to \\RASPBERRY1\R32gUSB and www is a folder in it.

I have changed two lines in httpd.conf as follows-

DocumentRoot "w:/www/" ###### aqk #####

<Directory "W:/www/"> #### aqk #####

Wampserver works OK if I change the W back to F (a local partition)


I am using Win10. And get the following errors in my browser when I try to access localhost-
In MS Edge-

Hmm, we can't reach this page.
Try this
•Make sure you’ve got the right URL: [localhost] etc etc..

In Firefox-
Firefox can't establish a connection to the server at localhost.
The site could be temporarily unavailable or too busy. Try again in a few moments.


Using text editors I have no problem accessing my W:\ drive.

Any solution? Thanx.



Edited 2 time(s). Last edit at 08/24/2015 12:38AM by aqk.

Options: ReplyQuote
Re: How can I access a networked www?
Posted by: Otomatic (Moderator)
Date: August 24, 2015 11:04AM

Hi,

Never modify httpd.conf file. Use VirtualHosts: The need for Virtual Host
One ore more VirtualHost can be on a network drive.

And, for Edge:
Microsoft Edge runs with network isolation by default for security reasons. To enable loopback and debug your localhost server, launch Edge and type in the address bar : about:flags then there are some options like this:
Quote
Edge
Developer Settings

X Use the Microsoft Compatibility Lists
X Allow localhost loopback (this may expose your device to risks)
These two options must be checked.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 08/24/2015 11:19AM by Otomatic.

Options: ReplyQuote
Re: How can I access a networked www?
Posted by: aqk (192.95.195.---)
Date: August 24, 2015 11:25PM

'Re-
Never modify httpd.conf file. Use VirtualHosts: The need for Virtual Host
One ore more VirtualHost can be on a network drive."
======================

OK, The following works-
<VirtualHost *:80>
DocumentRoot "f:/www/aqk2015"
ServerName aqk1
<Directory "f:/www/aqk2015">
AllowOverride All
Require local
</Directory>
</VirtualHost> #

But W: which is a networked drive on a Raspberry Pi Linux drive, will not let Apache restart.
<VirtualHost *:80>
DocumentRoot "f:/www/test"
ServerName tst1
<Directory "f:/www/test">
AllowOverride All
# grrrrr Require local
</Directory>
</VirtualHost>

re- "Create a folder on the wamp disk or any other disk ( beware of network drive, they are a bit more complicated)"

There must be more to accessing networked www data....Where can I find it?
Maybe I should just create a LAMP system on my Raspberry? ;-)



Edited 1 time(s). Last edit at 08/24/2015 11:31PM by aqk.

Options: ReplyQuote
Re: How can I access a networked www?
Posted by: RiggsFolly (---.as43234.net)
Date: August 25, 2015 02:03AM

Do you have something running so that Windows can see a Raspberry Pi disk? Samba maybe?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.