Jump to content
rAmfu

Brak dostępu przez www

Recommended Posts

Serwer:

Debian 10, apache2, php7.3

 

Vhosty na serwerze:

www.ramfu.szczecin.pl

gpanel.ramfu.szczecin.pl

status.ramfu.szczecin.pl

www.nokidzz.pl

 

Zawartość pliku htaccess:

RewriteEngine On
RewriteBase /


#Strony bledow
ErrorDocument 400 /errors/HTTP400.html
ErrorDocument 401 /errors/HTTP401.html
ErrorDocument 403 /errors/HTTP403.html
ErrorDocument 404 /errors/HTTP404.html
ErrorDocument 500 /errors/HTTP500.html
ErrorDocument 501 /errors/HTTP501.html
ErrorDocument 502 /errors/HTTP502.html
ErrorDocument 503 /errors/HTTP503.html


# Protect the htaccess file
<Files .htaccess>
Order Allow,Deny
Deny from all
</Files>


# Disable directory browsing
Options All -Indexes

 

Konfiguracja strefy DNS:

vfm-thumb.php?thumb=dXBsb2Fkcy9PYnJhenkv

 

Problem polega na wejściu na domenę bez przedrostka www odpala wtedy jednego konkretnego vhosta i nie rozumiem dlaczego.

Wchodząc na nokidzz.pl odpala zupełnie innego vhosta i wyświetla stronę gpanel.ramfu.szczecin.pl O.o

Edited by rAmfu

Share this post


Link to post
Share on other sites

DNSy są ok, domena wskazuje na ten sam serwer z www i bez.

Lepiej pokaż konfigurację vhostów, bo tam coś masz prawdopodobnie nie-tak.

 

EDIT: W sumie to działa normalnie www.nokidzz.pl i nokidzz.pl wskazuje na to samo, więc jednak nie rozumiem problemu.

Edited by FlashT

Share this post


Link to post
Share on other sites

Naprawiłem, problemem był certyfikat SSL.

Źle wygenerowany i użyty dla 3 sub domen stąd walidacja z gpanel na wszystkich vhostach.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×