View previous topic :: View next topic |
Author |
Message |
d3c3it l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/8046047643f6dd8da62e40.png)
Joined: 01 Mar 2003 Posts: 765 Location: Manchester, UK
|
Posted: Sat Jun 14, 2003 1:05 am Post subject: General Apache Questions |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
reves Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/8552196234044f2abaed6f.jpg)
Joined: 25 Jun 2002 Posts: 215 Location: South Florida
|
Posted: Sat Jun 14, 2003 2:24 am Post subject: Re: General Apache Questions |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
d3c3it l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/8046047643f6dd8da62e40.png)
Joined: 01 Mar 2003 Posts: 765 Location: Manchester, UK
|
Posted: Sun Jun 15, 2003 8:53 pm Post subject: Re: General Apache Questions |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|