달력

52024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

XAMPP 웹서버

웹서버 2016. 2. 24. 13:44

 

사용중인 버전 : xampp-portable-win32-1.8.3-5-VC11

 

 

https://www.apachefriends.org/index.html

https://sourceforge.net/projects/xampp/

https://sourceforge.net/projects/xampp/files/?source=navbar



-------------------------------------------------------


php 버전 5.3 이상일 경우 mysqli 사용권장 에러 포스팅 문제 해결


php.ini 설정


error_reporting=E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT


index.php

error_reporting(E_ALL ^ (E_NOTICE | E_DEPRECATED));


-------------------------------------------------------


httpd-vhosts.conf


#가상 호스트 샘플 a.com b.com   root 경로 www 폴더안에 생성 

<VirtualHost *:80>

    ServerAdmin webmaster@pobox.com

    DocumentRoot "C:/xampp/htdocs"

    ServerAlias *.com

     RewriteEngine on

     RewriteCond  %{HTTP_HOST} ^[^.]+\.com$

     RewriteRule  ^(.+) %{HTTP_HOST}$1 [C]

     RewriteRule  ^([^.]+)\.com(.*) C:/xampp/htdocs/$1/$2

    ErrorLog "logs/web_log.log"

    CustomLog "logs/web_log.log" common

</VirtualHost>


#가상 호스트 샘플 a.pobox.comm b.pobox.com   root 경로 www 폴더안에 생성 

#<VirtualHost *:80>

#    ServerAdmin webmaster@pobox.com

#    DocumentRoot "C:/xampp/htdocs/www"

#    ServerName pobox.com

#    ServerAlias *.pobox.com

#     RewriteEngine on

#     RewriteCond  %{HTTP_HOST} ^[^.]+\.pobox\.com$

#     RewriteRule  ^(.+) %{HTTP_HOST}$1 [C]

#     RewriteRule  ^([^.]+)\.test\.com(.*) C:/xampp/htdocs/www/$1/$2

#    ErrorLog "logs/web_log.log"

#    CustomLog "logs/web_log.log" common

#</VirtualHost>


-------------------------------------------------------


httpd-ssl.conf 설정


<VirtualHost _default_:443>


#   General setup for the virtual host

DocumentRoot "C:/xampp/htdocs"

ServerAlias *.com

 RewriteEngine on

 RewriteCond  %{HTTP_HOST} ^[^.]+\.com$

 RewriteRule  ^(.+) %{HTTP_HOST}$1 [C]

 RewriteRule  ^([^.]+)\.com(.*) C:/xampp/htdocs/$1/$2

ErrorLog "C:/xampp/apache/logs/error.log"

TransferLog "C:/xampp/apache/logs/access.log"



Posted by 타카스 류지
|