Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SF][SF2] Listowanie plików na serwerze
wiciu010
post
Post #1





Grupa: Zarejestrowani
Postów: 195
Pomógł: 0
Dołączył: 29.04.2007

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


Cześć,

Posiadam serwer vps z zainstalowanym apache 2.4.7 + php + mysql.
Próbuję przenieść z innego serwera aplikację napisaną w Symfony2. Stworzyłem Virtual Host:

Kod
<VirtualHost *:80>
    DocumentRoot /var/www/html/moj.adres.pl/web
    DirectoryIndex index.php
    ServerName moj.adres.pl
    ServerAlias www.moj.adres.pl
    ServerAdmin admin@adres.pl
    ErrorLog /var/www/html/moj.adres.pl/error.log
    CustomLog /var/www/html/moj.adres.pl/access.log combined
    <Directory "/var/www/html/moj.adres.pl">
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>


Konfiguracja .htaccess w katalogu /web

Kod
<IfModule mod_rewrite.c>
    RewriteEngine On        
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>


Niestety po wejściu na adres zamiast wyświetlenia serwisu otrzymuję wylistowane pliki z katalogu /web.

Czym to może być spowodowane? Co może być źle skonfigurowane na serwerze?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ohm
post
Post #2





Grupa: Zarejestrowani
Postów: 623
Pomógł: 144
Dołączył: 22.12.2010

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


http://symfony.com/doc/current/cookbook/co...figuration.html - tutaj masz pełną konfigurację serwera
Go to the top of the page
+Quote Post

Posty w temacie


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: 5.10.2025 - 19:11