Extra Form
PHP PHP 7.2
CMS Rhymix

분명히 

/etc/apache2/sites-available/examplesite.com.conf

내용을 이렇게 하고

<VirtualHost *:80>
    ServerName examplesite.com
    ServerAlias www.examplesite.com
    
    <IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteRule ^ - [E=protossl]
    RewriteCond %{HTTPS} on
    RewriteRule ^ - [E=protossl:s]

    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    </IfModule>

 

    <Directory /home/myuser1/www>
        Options FollowSymLinks MultiViews
        AllowOverride All
        require all granted

        # upload_max_filesize and post_max_size must have the same value.
        php_value upload_max_filesize 10M
        php_value post_max_size 10M

        # Enhance session security.
        php_value session.cookie_httponly 1
        php_value session.use_strict_mode 1

        # php_value memory_limit 128M
        # php_value max_execution_time 30
        # php_value max_input_time 60
    </Directory>

 

</VirtualHost>

# Specify the SSL cache directory. If possible, use shmcb, otherwise use the provided path.
SSLStaplingCache shmcb:/var/run/ocsp(128000)

<VirtualHost *:443>
    ServerName examplesite.com
    ServerAlias www.examplesite.com
    
    DocumentRoot /home/myuser1/www

 

 

<IfModule mod_rewrite.c>

rewriteEngine On

</IfModule>

 

    <Directory /home/myuser1/www>
        Options FollowSymLinks MultiViews
        AllowOverride All
        require all granted

        # upload_max_filesize and post_max_size must have the same value.
        php_value upload_max_filesize 10M
        php_value post_max_size 10M

        # Enhance session security.
        php_value session.cookie_httponly 1
        php_value session.use_strict_mode 1

        # php_value memory_limit 128M
        # php_value max_execution_time 30
        # php_value max_input_time 60
    </Directory>

    AssignUserID myuser1 myuser1

    ErrorLog ${APACHE_LOG_DIR}/examplesite.com-error.log
    CustomLog ${APACHE_LOG_DIR}/examplesite.com-access.log combined

    Header always set Strict-Transport-Security "max-age=31536000"

    SSLEngine on

    SSLProtocol all -SSLv2 -SSLv3

    SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA

    SSLHonorCipherOrder on
    SSLCertificateFile "/etc/letsencrypt/live/examplesite.com/cert.pem"
    SSLCertificateKeyFile "/etc/letsencrypt/live/examplesite.com/privkey.pem"
    SSLCertificateChainFile "/etc/letsencrypt/live/examplesite.com/chain.pem"

    # Turn on OCSP stapling
    SSLUseStapling on
    SSLStaplingResponderTimeout 5
    SSLStaplingReturnResponderErrors off

 

</VirtualHost>

 

 

그리고 /etc/apache2/apache2.conf에서

<IfModule mod_rewrite.c>

rewriteEngine On

</IfModule>

도 했고

AllowOverride All도 해놓았는데 왜 저럴까요?

 

  • profile
    a2enmod rewrite
  • profile profile
    이것도 처음에 해보았지만 아쉽게도 ㅠㅠ
  • profile
    약간 질문 내용이 부족하긴 하지만
    생각해 볼수 있는 답변들입니다.
    1. 윗분 처럼 웹서버 rewrite 모듈 활성화 여부 체크
    2. 사이트에 .htaccess 파일이 웹 루트 폴더에 잘 올려져 있는지 체크
    3. 짧은 주소 사용하기를 했는지 체크

    이 정도만 확인해도 원인 파악이 될것 같습니다.
  • profile profile
    3번은 xe설치후 확인하는 걸 말하시는건가요?
  • profile profile
    웹 루트에 htaccess 는 업로드되어있는상태이공
    내용으로는
    <IfModule mod_rewrite>
    RewriteEngine On
    </IfModule>

    이렇게 해놓은 상태입니다 ㅠ
  • profile profile
    혹시 그 내용 하나만 있나요?
    따로 건드린게 없다면 라이믹스 원본에서 .htaccess 파일을 붙여넣기 해보세요.
  • profile profile

    해보았지만 아쉽게도 안되네요 ㅠ

  • profile profile
    apache2.conf에서
    .htaccess사용을 해놓았는데
    사용이 안되고 있는것 같습니다.
    이럴때 어떻게 해야할까요?
    apache2.conf에서 주석제거랑
    AllowOverride All도 해놓았는데 말이죠
  • profile profile
    라이믹스 설정에서도 확인해보셨나요?
  • profile profile
    네 ㅠㅠ
    라이믹스 설정에서
    짫은 링크 사용으로 하고
    적용해서 다른데 들어가면 오류가 뜨네요
    +지금 확인해보니 .htaccess 가 작동안하는데 왜 그런지 모르겠네요
  • profile profile
    개인적으로 원격 가능하신가요?
  • profile profile
    죄송하지만 불가능합니다. ㅠㅠ
  • profile profile
    아쉽네요 ㅠㅠ