Page 1 of 1

Where must files live to be processd by XAMPP Lite?

PostPosted: 17. July 2009 17:54
by Howard Kaikow
Do all files that may be processed by XAMPP Lite have to live under S:\xampplite\htdocs\xampp\?
Or, is it possible to construct a URL that refers to files anywhere on the PC?

Re: Where must files live to be processd by XAMPP Lite?

PostPosted: 18. July 2009 09:22
by Izzy
Howard Kaikow wrote:Do all files that may be processed by XAMPP Lite have to live under S:\xampplite\htdocs\xampp\?
Or, is it possible to construct a URL that refers to files anywhere on the PC?
Accessible files in the Lite version (and the full version) live under the DocumentRoot as defined in the httpd.conf file - by default C:\xampplite\htdocs\ - URI http://localhost/

Any files outside the DocumentRoot are restricted by this entry in the apache\conf\httpd.conf file:
Code: Select all
# First, we configure the "default" to be a very restrictive set of
# features. 
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>
Advisable, for obvious security reasons, to leave this as is.

To configure your files and folders outside the DocumentRoot look at the Alias or <VirtualHost> directives - some Alias examples are already configured in the apache\conf\\extras\httpd-xampp.conf file and there are some examples of <VirtualHost> in the apache\conf\\extras\httpd-vhosts.conf file, with even more examples from an advanced forum search.

Some Apache reading here:
Directives - http://httpd.apache.org/docs/2.2/mod/directives.html
Alias - http://httpd.apache.org/docs/2.2/mod/mo ... html#alias
<VirtualHosts> - http://httpd.apache.org/docs/2.2/vhosts/

Re: Where must files live to be processd by XAMPP Lite?

PostPosted: 18. July 2009 13:14
by Howard Kaikow
Thanx.

I had been hoping to do the following:

1. Using XAMPP LIte in Windows, define a share, say, MyStuff, then access the share as

Code: Select all
http://localhost/MyShare


2. On a multiboot system, with Windows and Ubuntu Linux, I had hoped to be able to use a link within *ix to use the same files I was using in Windows.

Are those doable?

Re: Where must files live to be processd by XAMPP Lite?

PostPosted: 18. July 2009 16:11
by Nobbie
>1. Using XAMPP LIte in Windows, define a share

What is a "share"? We speak about Apache, not about Windows. You may define an Alias, which points to a certain folder of your choice.

>2. On a multiboot system, with Windows and Ubuntu Linux, I had hoped to be able to use a link within *ix to use the same files I was using in Windows.

A link is not sufficient, more important is a "mount", you have to mount the windows file system (NTFS?) into the Linux file system. You don't need a link for that, you may point an Alias directly to that mounted device.

Re: Where must files live to be processd by XAMPP Lite?

PostPosted: 18. July 2009 16:27
by Howard Kaikow
Nobbie wrote:>1. Using XAMPP LIte in Windows, define a share

What is a "share"? We speak about Apache, not about Windows. You may define an Alias, which points to a certain folder of your choice.

>2. On a multiboot system, with Windows and Ubuntu Linux, I had hoped to be able to use a link within *ix to use the same files I was using in Windows.

A link is not sufficient, more important is a "mount", you have to mount the windows file system (NTFS?) into the Linux file system. You don't need a link for that, you may point an Alias directly to that mounted device.


All drives are mounted by Ubuntu.
So, I'd have to use an Alias in both OS.
Thanx.