You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Daniel Armando Rodriguez <dr...@epet1.edu.ar> on 2019/09/12 01:16:46 UTC

[users@httpd] Second level subdomain redirecting to main

Hi,

I'ḿ trying to achieve the subject's goal with no success so far.
This is my apache's config

<VirtualHost *:80>

    ServerName alumnos.epet1.edu.ar
    ServerAlias proyectos.alumnos.epet1.edu.ar
    ServerAdmin administrador@epet1.edu.ar

    DocumentRoot /var/www/proyectos.alumnos

     <Directory /var/www/proyectos.alumnos/>
         Options Indexes FollowSymLinks MultiViews
         AllowOverride All
Require all granted
     </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error_proyectos.alumnos.log
    CustomLog ${APACHE_LOG_DIR}/access_proyectos.alumnos.log combined

</VirtualHost>

Accessing the VH URL browser is redirected to www.epet1...

Have to say that alumnos.epet1... is a fully functional domain

I'm stuck with this problem, any clue?


Regardas in advance.






_______________________________________________
Daniel A. Rodriguez
Departamento de Tecnología para la Gestión
Escuela Provincial de Educación Técnica N° 1
Posadas - Misiones - Argentina
(0376) 443-8578
www.epet1.edu.ar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Second level subdomain redirecting to main

Posted by Daniel Armando Rodriguez <dr...@epet1.edu.ar>.
El mié., 11 de sep. de 2019 a la(s) 22:26, Eric Covener
(covener@gmail.com) escribió:
>
> On Wed, Sep 11, 2019 at 9:17 PM Daniel Armando Rodriguez
> <dr...@epet1.edu.ar> wrote:
> >
> > Hi,
> >
> > I'ḿ trying to achieve the subject's goal with no success so far.
> > This is my apache's config
> >
> > <VirtualHost *:80>
> >
> >     ServerName alumnos.epet1.edu.ar
> >     ServerAlias proyectos.alumnos.epet1.edu.ar
> >     ServerAdmin administrador@epet1.edu.ar
> >
> >     DocumentRoot /var/www/proyectos.alumnos
> >
> >      <Directory /var/www/proyectos.alumnos/>
> >          Options Indexes FollowSymLinks MultiViews
> >          AllowOverride All
> > Require all granted
> >      </Directory>
> >
> >     ErrorLog ${APACHE_LOG_DIR}/error_proyectos.alumnos.log
> >     CustomLog ${APACHE_LOG_DIR}/access_proyectos.alumnos.log combined
> >
> > </VirtualHost>
> >
> > Accessing the VH URL browser is redirected to www.epet1...
> >
> > Have to say that alumnos.epet1... is a fully functional domain
> >
> > I'm stuck with this problem, any clue?
>
> Do you get the same failure from a command line client?

yes

> Is the request logged to the custom access log?

No, logs are completely empty

> Are there htaccess files?

None

> What other headers accompany the redirect?

# wget -S --spider http://proyectos.alumnos.epet1.edu.ar
Modo arácnido activado. Comprobar si el fichero remoto existe.
--2019-09-16 07:33:08--  http://proyectos.alumnos.epet1.edu.ar/
Resolviendo proyectos.alumnos.epet1.edu.ar
(proyectos.alumnos.epet1.edu.ar)... 10.10.20.2
Conectando con proyectos.alumnos.epet1.edu.ar
(proyectos.alumnos.epet1.edu.ar)[10.10.20.2]:80... conectado.
Petición HTTP enviada, esperando respuesta...
  HTTP/1.1 302 Found
  Date: Mon, 16 Sep 2019 10:33:08 GMT
  Server: Apache/2.4.38
  Location: https://www.epet1.edu.ar
  Keep-Alive: timeout=5, max=100
  Connection: Keep-Alive
  Content-Type: text/html; charset=iso-8859-1





_______________________________________________
Daniel A. Rodriguez
Departamento de Tecnología para la Gestión
Escuela Provincial de Educación Técnica N° 1
Posadas - Misiones - Argentina
(0376) 443-8578
www.epet1.edu.ar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Second level subdomain redirecting to main

Posted by Eric Covener <co...@gmail.com>.
On Wed, Sep 11, 2019 at 9:17 PM Daniel Armando Rodriguez
<dr...@epet1.edu.ar> wrote:
>
> Hi,
>
> I'ḿ trying to achieve the subject's goal with no success so far.
> This is my apache's config
>
> <VirtualHost *:80>
>
>     ServerName alumnos.epet1.edu.ar
>     ServerAlias proyectos.alumnos.epet1.edu.ar
>     ServerAdmin administrador@epet1.edu.ar
>
>     DocumentRoot /var/www/proyectos.alumnos
>
>      <Directory /var/www/proyectos.alumnos/>
>          Options Indexes FollowSymLinks MultiViews
>          AllowOverride All
> Require all granted
>      </Directory>
>
>     ErrorLog ${APACHE_LOG_DIR}/error_proyectos.alumnos.log
>     CustomLog ${APACHE_LOG_DIR}/access_proyectos.alumnos.log combined
>
> </VirtualHost>
>
> Accessing the VH URL browser is redirected to www.epet1...
>
> Have to say that alumnos.epet1... is a fully functional domain
>
> I'm stuck with this problem, any clue?

Do you get the same failure from a command line client?
Is the request logged to the custom access log?
Are there htaccess files?
What other headers accompany the redirect?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org