Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> virtual host, 2 adresy stron, jeden serwer i problem z tym związany
dob
post
Post #1





Grupa: Zarejestrowani
Postów: 166
Pomógł: 0
Dołączył: 30.01.2003
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Witam, mam pewien problem otóż:
Mam serwer (webserv) na którym stoi sobie strona www.rallyfoto.com, kilka dni temu kupiłem domenę www.extremefoto.pl i chciałem podpiąć pod ten serwer.

Pierwsza strona działa bez problemu natomiast druga już nie, w pracy stwierdziłem że po wpisaniu adresu drugiej strony zostaje przeniesiony na tą pierwszą a nie do katalogu zawierającego pliki drugiej.

Kod
NameVirtualHost 217.153.167.51:80


#www.rallyfoto.com
<VirtualHost www.rallyfoto.com:80>
   DocumentRoot "e:/WebServ/httpd-users/rally"
    ServerName www.rallyfoto.com
</VirtualHost>

#www.extremefoto.pl
<VirtualHost www.extremefoto.pl:80>
DocumentRoot "e:/WebServ/httpd-users/extremefoto"
    ServerName www.extremefoto.pl
</VirtualHost>


Powyżej kod który umieszczony jest w pliku httpd.conf

Bardzo proszę o pomoc bo skończyły mi się już pomysły. Nie wiem co jeszcze mógłbym zmienić w tym pliku (wczoraj szukałem w googlu, zmieniałem wg sugestii użytkowników innych forów i nic).
------------------------------------------------------------------------------------------------------------------------
Problem rozwiązany, kod powinien być następujący:
Kod
NameVirtualHost *:80

#www.rallyfoto.com
<VirtualHost *:80>
   ServerAdmin admin@rallyfoto.com
   DocumentRoot e:/WebServ/httpd-users/rally
    ServerName www.rallyfoto.com
</VirtualHost>

#www.extremefoto.pl
<VirtualHost *:80>
    ServerAdmin admin@extremefoto.pl
   DocumentRoot e:/WebServ/httpd-users/ef/
    ServerName www.extremefoto.pl
</VirtualHost>


#www.rallyfoto.com
<VirtualHost *:80>
   ServerAdmin admin@rallyfoto.com
   DocumentRoot e:/WebServ/httpd-users/rally
    ServerName rallyfoto.com
</VirtualHost>

#www.extremefoto.pl
<VirtualHost *:80>
    ServerAdmin admin@extremefoto.pl
   DocumentRoot e:/WebServ/httpd-users/ef/
    ServerName extremefoto.pl
</VirtualHost>


Ten post edytował dob 11.07.2007, 18:04:36
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 23:25