Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML]Przekierowanie vhost na kolejny folder, www\projekt\strona
harbii
post
Post #1





Grupa: Zarejestrowani
Postów: 311
Pomógł: 1
Dołączył: 27.05.2006

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


W pliku httpd-vhosts.conf mam:
  1. <VirtualHost *:80>
  2. ServerName localhost
  3. DocumentRoot "c:\wamp\www"
  4. <Directory "c:\wamp\www">
  5. AllowOverride All
  6. Require local
  7. </Directory>
  8. DirectoryIndex index.html index.php
  9. </VirtualHost>
  10.  
  11. <VirtualHost *:80>
  12. ServerName strona.localhost
  13. DocumentRoot "c:\wamp\www\projekt\strona"
  14. <Directory "c:\wamp\www\projekt\strona">
  15. AllowOverride All
  16. Require all granted
  17. </Directory>
  18. DirectoryIndex index.html index.php
  19. </VirtualHost>


w pliku hosts mam:
  1. # localhost name resolution is handled within DNS itself.
  2. # 127.0.0.1 localhost
  3. # ::1 localhost
  4.  
  5. 127.0.0.1 localhost
  6. 127.0.0.1 strona.localhost


I efekt mam taki, że zawsze otwiera mi się panel od wampa czyli localhost.
Jeżeli przerzuce stronę bezpośrednio do folderu projekt i zmienie/skrócę documentroot i directory działa ok. Tylko, że ja muszę mieć stronkę w dalszym folderze.

Jak tego dokoanać?

Ten post edytował harbii 18.06.2015, 22:03:30
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 20.08.2025 - 13:20