You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Punt, Ryan" <Ry...@sencore.com> on 2003/10/07 18:18:18 UTC
[users@httpd] Vhosts and SSI
Ever since enabling name-based virtual hosts on my SuSE 8.2 server, I've
been unable to get server-side includes working.
Originally, the SSI-enabling directive was (obviously) contained in the body
of httpd.conf.
I tried replicating the directive in my vhost definition, to no avail:
#########################################
<VirtualHost *>
ServerAdmin admin@server.domain.tld
DocumentRoot /usr/local/httpd/htdocs
ServerName server.domain.tld
ServerPath /server
Options -Indexes -FollowSymLinks +IncludesNoEXEC
AddType text/html .shtml
AddHandler server-parsed .shtml
</VirtualHost>
#########################################
Entire Vhosts section:
#########################################
NameVirtualHost *
<VirtualHost *>
ServerAdmin admin@server.domain.tld
DocumentRoot /usr/local/httpd/htdocs
ServerName server.domain.tld
ServerPath /server
Options -Indexes -FollowSymLinks +IncludesNoEXEC
AddType text/html .shtml
AddHandler server-parsed .shtml
</VirtualHost>
<VirtualHost *>
ServerAdmin admin@server.domain.tld
DocumentRoot /usr/local/httpd/secondsite
ServerName server2.domain.tld
ServerPath /server2
ErrorLog /var/log/httpd/server2_error
CustomLog /var/log/httpd/server2_access common
</VirtualHost>
#########################################
Apache Version 1.3.23, mod_PHP 4.1.0, mod_perl 1.26 (SuSE supplied RPMs),
patched current.
Anybody experience this before? I've checked both Apache FAQ and Google,
but found nothing mentioning vhosts and SSI in concert.
Ryan Punt
Systems Analyst
Sencore, Inc.
T-{+1.605.339.0100 x337}
E-{ryan.punt@sencore.com}
F-{+1.605.339.0432}
M-{+1.605.321.1588}
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Vhosts and SSI
Posted by Miguel González Castaños <mg...@tid.es>.
Sorry I was wrong
"Punt, Ryan" ha escrito:
> Ever since enabling name-based virtual hosts on my SuSE 8.2 server, I've
> been unable to get server-side includes working.
>
> Originally, the SSI-enabling directive was (obviously) contained in the body
> of httpd.conf.
>
> I tried replicating the directive in my vhost definition, to no avail:
> #########################################
> <VirtualHost *>
> ServerAdmin admin@server.domain.tld
> DocumentRoot /usr/local/httpd/htdocs
> ServerName server.domain.tld
> ServerPath /server
> Options -Indexes -FollowSymLinks +IncludesNoEXEC
> AddType text/html .shtml
> AddHandler server-parsed .shtml
> </VirtualHost>
> #########################################
>
> Entire Vhosts section:
> #########################################
> NameVirtualHost *
>
> <VirtualHost *>
> ServerAdmin admin@server.domain.tld
> DocumentRoot /usr/local/httpd/htdocs
> ServerName server.domain.tld
> ServerPath /server
> Options -Indexes -FollowSymLinks +IncludesNoEXEC
> AddType text/html .shtml
> AddHandler server-parsed .shtml
> </VirtualHost>
>
> <VirtualHost *>
> ServerAdmin admin@server.domain.tld
> DocumentRoot /usr/local/httpd/secondsite
> ServerName server2.domain.tld
> ServerPath /server2
> ErrorLog /var/log/httpd/server2_error
> CustomLog /var/log/httpd/server2_access common
> </VirtualHost>
> #########################################
>
> Apache Version 1.3.23, mod_PHP 4.1.0, mod_perl 1.26 (SuSE supplied RPMs),
> patched current.
>
> Anybody experience this before? I've checked both Apache FAQ and Google,
> but found nothing mentioning vhosts and SSI in concert.
>
> Ryan Punt
> Systems Analyst
> Sencore, Inc.
> T-{+1.605.339.0100 x337}
> E-{ryan.punt@sencore.com}
> F-{+1.605.339.0432}
> M-{+1.605.321.1588}
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
--
Un saludo,
Miguel
_______________________________________________________________________
Control en el Entorno Móvil
Telefónica I+D
Parque Tecnológico de Boecillo, parcela 118
47151 Boecillo (Valladolid)
Tel: +34 983 367957
Fax: +34 983 367564
E-mail: mgc@tid.es Web: http://www.tid.es
_______________________________________________________________________
"Si la libertad significa algo, será sobre todo el derecho a decirle
a la gente aquello que no quieren oir". George Orwell
_______________________________________________________________________
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Vhosts and SSI
Posted by Miguel González Castaños <mg...@tid.es>.
What about using different ports for differents virtual hosts? Apparently you
are trying to set up two virtual hosts at 80 port (the default one).
HTH
Miguel
"Punt, Ryan" ha escrito:
> Ever since enabling name-based virtual hosts on my SuSE 8.2 server, I've
> been unable to get server-side includes working.
>
> Originally, the SSI-enabling directive was (obviously) contained in the body
> of httpd.conf.
>
> I tried replicating the directive in my vhost definition, to no avail:
> #########################################
> <VirtualHost *>
> ServerAdmin admin@server.domain.tld
> DocumentRoot /usr/local/httpd/htdocs
> ServerName server.domain.tld
> ServerPath /server
> Options -Indexes -FollowSymLinks +IncludesNoEXEC
> AddType text/html .shtml
> AddHandler server-parsed .shtml
> </VirtualHost>
> #########################################
>
> Entire Vhosts section:
> #########################################
> NameVirtualHost *
>
> <VirtualHost *>
> ServerAdmin admin@server.domain.tld
> DocumentRoot /usr/local/httpd/htdocs
> ServerName server.domain.tld
> ServerPath /server
> Options -Indexes -FollowSymLinks +IncludesNoEXEC
> AddType text/html .shtml
> AddHandler server-parsed .shtml
> </VirtualHost>
>
> <VirtualHost *>
> ServerAdmin admin@server.domain.tld
> DocumentRoot /usr/local/httpd/secondsite
> ServerName server2.domain.tld
> ServerPath /server2
> ErrorLog /var/log/httpd/server2_error
> CustomLog /var/log/httpd/server2_access common
> </VirtualHost>
> #########################################
>
> Apache Version 1.3.23, mod_PHP 4.1.0, mod_perl 1.26 (SuSE supplied RPMs),
> patched current.
>
> Anybody experience this before? I've checked both Apache FAQ and Google,
> but found nothing mentioning vhosts and SSI in concert.
>
> Ryan Punt
> Systems Analyst
> Sencore, Inc.
> T-{+1.605.339.0100 x337}
> E-{ryan.punt@sencore.com}
> F-{+1.605.339.0432}
> M-{+1.605.321.1588}
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
--
Un saludo,
Miguel
_______________________________________________________________________
Control en el Entorno Móvil
Telefónica I+D
Parque Tecnológico de Boecillo, parcela 118
47151 Boecillo (Valladolid)
Tel: +34 983 367957
Fax: +34 983 367564
E-mail: mgc@tid.es Web: http://www.tid.es
_______________________________________________________________________
"Si la libertad significa algo, será sobre todo el derecho a decirle
a la gente aquello que no quieren oir". George Orwell
_______________________________________________________________________
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Vhosts and SSI
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 7 Oct 2003, Punt, Ryan wrote:
> Ever since enabling name-based virtual hosts on my SuSE 8.2 server, I've
> been unable to get server-side includes working.
>
> Originally, the SSI-enabling directive was (obviously) contained in the body
> of httpd.conf.
>
> I tried replicating the directive in my vhost definition, to no avail:
Start here:
http://httpd.apache.org/docs/misc/FAQ.html#options
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org