Rzecz prozaiczna ustawienie, virtual hostów, nie mam z tym problemu, kiedy jest to dla jednego bądź 2 adresów.
Problem zaczyna się, kiedy chcę, aby tego było więcej
Struktura czy to w pliku *.conf, na który skierowuje http.conf czy w samym http wygląda tak:
Kod
<VirtualHost ADRES_IP>
DocumentRoot /www/docs/strona
ServerName strona.pl
ServerAdmin webmaster@stron.pl
</VirtualHost>
<VirtualHost ADRES_IP>
DocumentRoot /www/docs/forum
ServerName inna_strona.pl
ServerAdmin webmaster@stron.pl
</VirtualHost>
<VirtualHost ADRES_IP>
DocumentRoot /www/docs/galeria
ServerName galeria.pl
ServerAdmin webmaster@stron.pl
</VirtualHost>
DocumentRoot /www/docs/strona
ServerName strona.pl
ServerAdmin webmaster@stron.pl
</VirtualHost>
<VirtualHost ADRES_IP>
DocumentRoot /www/docs/forum
ServerName inna_strona.pl
ServerAdmin webmaster@stron.pl
</VirtualHost>
<VirtualHost ADRES_IP>
DocumentRoot /www/docs/galeria
ServerName galeria.pl
ServerAdmin webmaster@stron.pl
</VirtualHost>
Problem jest taki, że dla 2 wyświetlają mi się poprawnie strony
dla trzeciej odzywa się domyślny ADRES_IP i kieruje mnie do strony zdefiniowanej w 1 virtual host.
Znacie może odpowiedź?
Rozwiązanie znalazłem. Puściłem wszystko przez jeden DNS i nagle zaczeło wszystko działać. Trochę mnie to dziwi no ale takie jest rozwiązanie tego problemu