SJVA ¿Í ¿¬µ¿ÇÏ¿© »ç¿ëÇϴ°ÍÀÔ´Ï´Ù.
#¿¡¾îÄڹͽº
docker run -d --name=aircomix -p 31257:31257 -v /volume1/docker/tv/data/MangaDownload:/volume1/comics nimmis/apache-php5
docker exec -it aircomix /bin/sh
wget -O master.tar.gz https://github.com/song31/comix-server/tarball/master
chmod 755 master.tar.gz
tar xzvfa master.tar.gz
mkdir /var/www/comix-server
cp ./song31-comix-server-9d2630a/*php /var/www/comix-server
cd /var/www/comix-server
vi index.php
<?php
################################################################################
# Set $dir_name with the name of the manga directory.
#
# Combined with $path in handler.php,
# the manga directory's full path will be /volume1/manga.
################################################################################
$dir_name = "comics";
echo $dir_name."\n";
?>
:wq
cd ~/
cp ./song31-comix-server-9d2630a/conf/httpd.conf-comix /etc/apache2/sites-enabled/httpd-comix.conf
vi /etc/apache2/sites-enabled/httpd-comix.conf
cd ~/song31-comix-server-9d2630a/conf
cp htaccess /var/www/comix-server/.htaccess
cd /var/www/comix-server
vi .htaccess
AuthType Basic
AuthName "AirComix"
AuthUserFile /var/www/comix-server/.htpasswd
require valid-user
:wq
apt-get update
apt-get install apache2-utils
htpasswd -c .htpasswd AirComix
vi /etc/apache2/sites-enabled/httpd-comix.conf
Listen 31257
<VirtualHost *:31257>
<Directory "/var/www/comix-server">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
DocumentRoot "/var/www/comix-server"
AllowEncodedSlashes On
DirectoryIndex index.php
AliasMatch ^/welcome.102(.*)$ /var/www/comix-server/welcome.php
AliasMatch ^/comics(.*)$ /var/www/comix-server/handler.php
</VirtualHost>
:wq
´ëºÎºÐ ±×´ë·Î ºÙ¿©³Ö±â ÇÏ½Ã¸é µË´Ï´Ù.
:wq <- vi ÀúÀåÁ¾·á
htpasswd -c .htpasswd AirComix <-- À̺κÐÀº ºñ¹Ð¹øÈ£ ¼³Á¤ºÎºÐÀÔ´Ï´Ù.
Âü°í
±ÇÇÑÀ» ÁÖ¼Å¾ß ¸ñ·ÏÀÌ ³ª¿É´Ï´Ù.
|
Àú´Â Àß ¸ô¶ó¼ ±×³É WEBDEV·Î ÇÏ°í ÀÖ¾¹´Ï´Ù..