Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
General Apache Questions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
d3c3it
l33t
l33t


Joined: 01 Mar 2003
Posts: 765
Location: Manchester, UK

PostPosted: Sat Jun 14, 2003 1:05 am    Post subject: General Apache Questions Reply with quote

Hey
i finally got my apache+php setup working *well the apache+php test pages both show up so i presume its working* but what i wanted to know is how would i make my apache server viewable to my windows machine
my setup is like this.
my xp machine is 192.168.0.1, laptop *gentoo+apache* is 192.168.0.2 and my xp machine provides my net connection thou con sharing *dont flame, im going to setup an openbsd router when ive time:)* but what i want to know is how can my windows system view my apache files etc.*FIXED*

i also want to know how do you get apache to read directories *sounds weird but let me explain* if i dump single .php files or index.* into /home/httpd/htdocs when i connect to localhost it will show the index in the directory or whatever but if ive got another directory say /home/httpd/htdocs/test/ then whatever browser im using just pops up saying unable to connected is there a way round that?
thanks in advance to any replies
_________________
Some people go to counselling,
others use linux


Last edited by d3c3it on Sat Jun 14, 2003 2:28 am; edited 1 time in total
Back to top
View user's profile Send private message
reves
Apprentice
Apprentice


Joined: 25 Jun 2002
Posts: 215
Location: South Florida

PostPosted: Sat Jun 14, 2003 2:24 am    Post subject: Re: General Apache Questions Reply with quote

d3c3it wrote:
Hey
i finally got my apache+php setup working *well the apache+php test pages both show up so i presume its working* but what i wanted to know is how would i make my apache server viewable to my windows machine
my setup is like this.
my xp machine is 192.168.0.1, laptop *gentoo+apache* is 192.168.0.2 and my xp machine provides my net connection thou con sharing *dont flame, im going to setup an openbsd router when ive time:)* but what i want to know is how can my windows system view my apache files etc.


If youe mean to view the website from the Windows system you could just enter http://192.168.0.2/ into your web browser. If you mean to share the apache folder you would need Samba

d3c3it wrote:
i also want to know how do you get apache to read directories *sounds weird but let me explain* if i dump single .php files or index.* into /home/httpd/htdocs when i connect to localhost it will show the index in the directory or whatever but if ive got another directory say /home/httpd/htdocs/test/ then whatever browser im using just pops up saying unable to connected is there a way round that?
thanks in advance to any replies


Look for the line beginning DirectoryIndex in the apache.conf file (sorry I don't remember the exact location in Gentoo but I think it's in /etc/apache) and add index.php to it.
Example:
Code:
DirectoryIndex index.html inex.htm inex.php

_________________
Robert
Back to top
View user's profile Send private message
d3c3it
l33t
l33t


Joined: 01 Mar 2003
Posts: 765
Location: Manchester, UK

PostPosted: Sun Jun 15, 2003 8:53 pm    Post subject: Re: General Apache Questions Reply with quote

reves wrote:
d3c3it wrote:
Hey
i finally got my apache+php setup working *well the apache+php test pages both show up so i presume its working* but what i wanted to know is how would i make my apache server viewable to my windows machine
my setup is like this.
my xp machine is 192.168.0.1, laptop *gentoo+apache* is 192.168.0.2 and my xp machine provides my net connection thou con sharing *dont flame, im going to setup an openbsd router when ive time:)* but what i want to know is how can my windows system view my apache files etc.


If youe mean to view the website from the Windows system you could just enter http://192.168.0.2/ into your web browser. If you mean to share the apache folder you would need Samba

d3c3it wrote:
i also want to know how do you get apache to read directories *sounds weird but let me explain* if i dump single .php files or index.* into /home/httpd/htdocs when i connect to localhost it will show the index in the directory or whatever but if ive got another directory say /home/httpd/htdocs/test/ then whatever browser im using just pops up saying unable to connected is there a way round that?
thanks in advance to any replies


Look for the line beginning DirectoryIndex in the apache.conf file (sorry I don't remember the exact location in Gentoo but I think it's in /etc/apache) and add index.php to it.
Example:
Code:
DirectoryIndex index.html inex.htm inex.php

wicked cheers im all setup now and working a treat. Glad of these boards apache has been abit of a head ache ive found :X
_________________
Some people go to counselling,
others use linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum