[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache2 and PHP



On Fri, 24 Sep 2004 12:42:47 +0200
Micha Feigin disseminated the following:

> > ie. when I load www.freeyourmachine.org from the Internet or LAN, shows
> > 'www.freeyourmachine.org/apache2-default/' in the address field.
> > 
> > I have a feeling I'm doing something terribly wrong.
> > 
> 
> I believe you need to have something like the following for your
> virtual host:
> 
>         DocumentRoot /var/www/apache2-default/
> 
>         <Directory />
>                 Options FollowSymLinks
>                 AllowOverride None
>                 Order allow,deny
>                 allow from all
>         </Directory>

I have this in apache2.conf:

Include /etc/apache2/sites-enabled/[^.#]*

and in /etc/apache2/sites-enabled/default:

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                RedirectMatch ^/$ /apache2-default/
        </Directory>

...which says (to me, anyhow) that /apache2-default/ should show up as /, no?

Forgive me, I've been using Mandrake for 3 years, I have never had to really
learn anything about how this stuff really works ;-)

Anyhow, I made the change you suggested and it worked. Muchas Gracias!

-- 
JoeHill RLU #282046 /  www.freeyourmachine.org
08:57:04 up 51 days, 8:44, 7 users, load average: 0.37, 0.16, 0.11
+++++++++++++++++++++++++++
"President Bush is asking Congress for $80 billion dollars to rebuild Iraq. And
when you make out that check, remember there are two L's in Halliburton." --
David Letterman



Reply to: