форум vBSupport.ru > vBulletin > vB5 Connect > Вопросы по vB5 Connect
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
Grissom
Простоузер
Default Я сломал его, SSL нужна помощь
0

Ситуация такова.
Делаю сайт и форум. Решено было на SSL всё это дело перенести. Сказано сделано.
Переделал хост для апача, на старом в .htaccess прописал
Code:
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
сайт работает отлично, всё тип топ

у форума свой .htaccess и в нем я нашел такие же закомментированные строки
снял #
рестартанул апач, открываю форум - бяка - вся верстка полетела и тд
убрал я значит это дело взад и полез в админку - нашел там ссылки на логин форму и тд
поменял там на https и на свою голову сохранил.... адинка приказала долго жить после этого - зайти в нее более не могу
самому фронтенду форума лучше не стало
прошу помощи
линк на форум https://bit-miner-russia.group/forum/

ттх: cnetos 6, vbconnect 5.3.1, apache 2.2

Grissom добавил 20.08.2017 в 18:44
прилагаю полный .htaccess форума

Code:
<IfModule mod_rewrite.c>
        RewriteEngine On

        # In some cases where you have other mod_rewrite rules, you may need to remove the
        # comment on the following RewriteBase line and change it to match your folder name.
        # This resets the other mod_rewrite rules for just this directory
        # If your site was www.example.com/forum, the setting would be /forum/
        RewriteBase /

        # To redirect users to the secure version of your site, uncomment the lines below
        RewriteCond %{HTTPS} !=on
        RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

        # Send css calls directly to the correct file VBV-7807
        RewriteRule ^css.php$ core/css.php [NC,L]

        # Redirect old install path to core.
        RewriteRule ^install/ core/install/ [NC,L]

        # Main Redirect
        RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|css)$
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?routestring=$1 [L,QSA]

        # Because admincp is an actual directory.
        RewriteRule ^(admincp/)$ index.php?routestring=$1 [L,QSA]

</IfModule>

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE application/atom+xml \
                          text/javascript \
                          application/x-javascript \
                          application/javascript \
                          application/json \
                          application/rss+xml \
                          application/vnd.ms-fontobject \
                          application/x-font-ttf \
                          application/xhtml+xml \
                          application/xml \
                          font/opentype \
                          image/svg+xml \
                          image/x-icon \
                          text/css \
                          text/html \
                          text/plain \
                          text/x-component \
                          text/xml
</IfModule>

<IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType application/x-javascript A1209600
        ExpiresByType text/javascript A1209600
        ExpiresByType application/javascript A1209600
        ExpiresByType text/css A31536000
        ExpiresByType image/x-icon A2592000
        ExpiresByType image/icon A2592000
        ExpiresByType application/x-ico A2592000
        ExpiresByType application/ico A2592000
        ExpiresByType image/gif A2592000
        ExpiresByType image/jpeg A1209600
        ExpiresByType image/jpg A1209600
        ExpiresByType image/png A1209600
        ExpiresByType application/x-shockwave-flash A1209600
        ExpiresByType font/ttf A2592000
        ExpiresByType font/otf A2592000
        ExpiresByType font/x-woff A2592000
        ExpiresByType image/svg+xml A2592000
        ExpiresByType font/truetype A2592000
        ExpiresByType font/opentype A2592000
        ExpiresByType application/x-font-woff A2592000
        ExpiresByType application/vnd.ms-fontobject A2592000
</IfModule>

<IfModule mod_headers.c>
    Header set Connection keep-alive
        <filesmatch "\.(ico|flv|gif|swf|eot|woff|otf|ttf|svg)$">
                Header set Cache-Control "max-age=2592000, public"
        </filesmatch>
        <filesmatch "\.(jpg|jpeg|png)$">
                Header set Cache-Control "max-age=1209600, public"
        </filesmatch>
        <filesmatch "\.(eot|woff|otf|ttf|svg)$">
                Header set Cache-Control "max-age=2592000, public"
        </filesmatch>
        # css and js should use private for proxy caching https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching
        <filesmatch "\.(css)$">
                Header set Cache-Control "max-age=31536000, private"
        </filesmatch>
        <filesmatch "\.(js)$">
                Header set Cache-Control "max-age=1209600, private"
        </filesmatch>
</IfModule>
Grissom добавил 08-20-2017 в 06:51 PM
мозгами понимаю что rewrite работает не правильно, а починить не могу.
При попытке открытия топика к примеру
https://bit-miner-russia.group/forum...59?p=83#post83
получаю ошибку 404
Code:
https://bit-miner-russia.group/forum/node/59?p=83#post83

Last edited by Grissom : 08-20-2017 at 07:51 PM. Reason: Добавлено сообщение
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
WEBCAT
Простоузер
Default
0

Quote:
Originally Posted by Grissom View Post
сайт работает отлично, всё тип топ
Это не работает
HTML Code:
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Сайт открывается с http и https.

В прилагаемом коде файла .htaccess, возможно имеется ошибка в этой строке
HTML Code:
RewriteRule ^install/ core/install/ [NC,L]
замените её на строку с этим кодом
HTML Code:
RewriteRule ^install/$   core/install/ [NC,L]
 
 
artscripts
Эксперт
 
artscripts's Avatar
Default
0

раз у вас и сайт и форум работает на одномдомене, зачем вам в htaccess форума прописывать
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Удалите.
 
 
Luvilla
Гость
Default

Quote:
Originally Posted by Grissom View Post
линк на форум
а мне нравится.........

так...

Quote:
Originally Posted by WEBCAT View Post
возможно имеется ошибка в этой строке
ну и что? там /инсталл/, он уже не нужен

Quote:
Originally Posted by artscripts View Post
раз у вас и сайт и форум работает на одномдомене, зачем вам в htaccess форума прописывать
с этим согласна, если всё это стоит на одном сервере и форум - просто в папке

вопрос:
Quote:
Originally Posted by Grissom View Post
полез в админку - нашел там ссылки на логин форму и тд
поменял там на https и на свою голову сохрани
Точно?
вот точно-точно только https вместо http? больше - ничего?
она ж пишет
The requested URL /forum/auth/login-form was not found on this server.
ей башку снесло нипадеццки...

я подключала https на тестовой 5ке, и не трогала её .хтаксесс, всё и так работает
 
 
Grissom
Простоузер
Default
0

я пробовал не трогать - про форму аутентификации - сразу бошку срывает - независимо
думал так починю

так что теперь будет правильно предпринять? вообще грохнуть htaccess форума и оставить только общий хоста? или соединить их воедино для хоста?

Grissom добавил 08-20-2017 в 10:46 PM
вопрос как теперь это дело чинить (
из бэкапа поднимать ой ой как не хочется :( но видимо придется

Last edited by Grissom : 08-20-2017 at 11:46 PM. Reason: Добавлено сообщение
 
 
artscripts
Эксперт
 
artscripts's Avatar
Default
0

@Grissom, уберите у htaccess форума строки
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
 
 
Grissom
Простоузер
Default
0

Quote:
Originally Posted by artscripts View Post
@Grissom, уберите у htaccess форума строки
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
убрал - картина не изменилась
 
 
artscripts
Эксперт
 
artscripts's Avatar
Default
0

@Grissom, проще заново с скачанного форума перезалейте htaccess чтобы разу отсечь и понять что не в этом ошибка. Естественно файл должен быть как .htaccess а не htaccess.txt

artscripts добавил 20.08.2017 в 22:54
сюда входит? https://bit-miner-russia.group/forum/core/admincp/

Last edited by artscripts : 08-20-2017 at 11:54 PM. Reason: Добавлено сообщение
 
 
Grissom
Простоузер
Default
0

Quote:
Originally Posted by artscripts View Post
@Grissom, проще заново с скачанного форума перезалейте htaccess чтобы разу отсечь и понять что не в этом ошибка. Естественно файл должен быть как .htaccess а не htaccess.txt

artscripts добавил 20.08.2017 в 22:54
сюда входит? https://bit-miner-russia.group/forum/core/admincp/
сделано только что - эффект нулевой
уже склоняюсь к тому чтобы действительно из бэкапа восстановить
 
 
artscripts
Эксперт
 
artscripts's Avatar
Default
0

накатите 5.3.2pl 1 и обновите http://vbsupport.ru/forum/krfilesman...&dlfileid=1407

artscripts добавил 20.08.2017 в 22:58
если не выйдет не чего восстанавливать из бекапа.

Last edited by artscripts : 08-20-2017 at 11:58 PM. Reason: Добавлено сообщение
 

Tags
ssl, vbconnect5


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 10:09 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...