본문 바로가기

Web/Javascript

centos apache 에서 vue router history mod가 안될때

.htaccess 파일 업로드 

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>



.htaccess  인식을 못할경우 추가


vi /etc/httpd/conf/httpd.conf


<Directory /디렉토리>

  Options  -Indexes +FollowSymLinks

   AllowOverride FileInfo AuthConfig Limit

</Directory>




ssl이 있는경우 ssl.conf는 별도 추가 설정 안함.



참조  Apache 2.2 섹션설정

https://httpd.apache.org/docs/2.2/ko/sections.html

'Web > Javascript' 카테고리의 다른 글

javascript 타이머  (0) 2018.05.09