Where must files live to be processd by XAMPP Lite?

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

Where must files live to be processd by XAMPP Lite?

Postby Howard Kaikow » 17. July 2009 17:54

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?
Howard Kaikow
 
Posts: 32
Joined: 06. July 2009 21:27

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

Postby Izzy » 18. July 2009 09:22

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/
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

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

Postby Howard Kaikow » 18. July 2009 13:14

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?
Howard Kaikow
 
Posts: 32
Joined: 06. July 2009 21:27

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

Postby Nobbie » 18. July 2009 16:11

>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.
Nobbie
 
Posts: 8762
Joined: 09. March 2008 13:04

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

Postby Howard Kaikow » 18. July 2009 16:27

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.
Howard Kaikow
 
Posts: 32
Joined: 06. July 2009 21:27


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 46 guests