![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 43 Pomógł: 0 Dołączył: 31.10.2012 Skąd: Gorzów Wlkp Ostrzeżenie: (0%) ![]() ![]() |
Plik index.php wygląda nastepująco:
W katalogu "template" są pliki: main.tpl oraz deposit.tpl Plik .htaccess wygląda następująco: RewriteEngine on RewriteRule ^(\w+)$ index.php?page=$1 [L,NC,QSA] RewriteRule ^(\w+)+\/$ index.php?page=$1 [L,NC,QSA] RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] order allow,deny deny from 46.101.200.204 allow from all Na localhoscie na xamppie działa bardzo dobrze. Natomiast na VPS ubuntu 14 jest problem z wyświetlniem strony. Z automatu ładuje się adres: ip_maszyny/main ale jest tylko kod błędu : 404 Na VPS jest apache, php, mysql, phpmyadmin Konfiguracja /etc/apache2/apache2.conf <Directory /var/www/html/> Options Indexes FollowSymLinks Multiviews Order allow,deny allow from all AllowOverride None Require all granted </Directory> Konfiguracja /etc/apache2/site-available/000-default.conf <VirtualHost *:80> DocumentRoot /var/www/html/ ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> Ten post edytował SUICIDE 7.05.2016, 06:25:59 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 24.07.2025 - 15:34 |