ÆÞÀ» ±¸µ¿½ÃÅ°±â À§ÇÏ¿© ¿ÏÀüÈ÷ ´«ÀÌ »¹°³Áöµµ·Ï ÀÛ¾÷ÇÏ°í ÀÖÁö¸¸ Ãʺ¸ÀÚ¶ó ±×·±Áö ¿ÏÀüÈ÷ »ðÁú¸¸ ÇÏ°í Àֳ׿ä...
¼¹öÀÇ »ç¾çÀº ¸®´ª½º ·¹µåÇò 7.0 ÀÌ°í Áú¹®ÀÇ ³»¿ëÀº ´ÙÀ½°ú °°½À´Ï´Ù.
- ÇöÀç ¹®¼ ¹× ÆÄÀÏ °æ·Î°¡ "/home/root2/html/"À¸·Î ÀâÇôÀÖ°í ÀÌ °÷ ÀÌÇÏÀÇ ¸ðµç µð·ºÅ丮¿¡¼ cgi¸¦ ±¸µ¿½ÃÅ°°íÀÚ ÇÕ´Ï´Ù. ±×·±µ¥ µµ´ëü°¡ µÇÁö°¡ ¾Ê´Â±º¿ä.
httpd.conf¿¡¼ ¸î¸î ÁÖ¿ä ¼³Á¤ ºÎºÐÀº ´ÙÀ½°ú °°½À´Ï´Ù.(¸ðµÎ ¿Ã¸®¸é º¸´Â ºÐµéÀÌ Â¥Áõ³¯±îºÁ ¹®Á¦°¡ µÉ °Í °°Àº ¸î¸î ºÎºÐ¸¸ ¿Ã¸³´Ï´Ù.)
# # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/home/root2/html"
# # Each directory to which Apache has access, can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # permissions. # <Directory /> Options FollowSymLinks Indexes ExecCGI AllowOverride None </Directory>
# # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. #
# # This should be changed to whatever you set DocumentRoot to. # <Directory "/home/root2/html">
# # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes Includes FollowSymLinks
----------------- Áß ·« --------------------------
# # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
# # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "/var/www/cgi-bin"> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
--------------------- Áß ·« ------------------------
# # AddType: allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # # The following is for PHP4 (conficts with PHP/FI, below): <IfModule mod_php4.c> AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source .phps </IfModule>
# The following is for PHP3: <IfModule mod_php3.c> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps </IfModule>
# The following is for PHP/FI (PHP2): <IfModule mod_php.c> AddType application/x-httpd-php .phtml </IfModule>
AddType application/x-tar .tgz
# # AddHandler: allows you to map certain file extensions to "handlers", # actions unrelated to filetype. These can be either built into the server # or added with the Action command (see below) # # If you want to use server side includes, or CGI outside # ScriptAliased directories, uncomment the following lines. # # To use CGI scripts: # AddHandler cgi-script .cgi AddHandler cgi-script .pl
------------------- Áß ·« --------------------
# If the perl module is installed, this will be enabled. <IfModule mod_perl.c> Alias /perl/ /var/www/perl/ <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI </Location> </IfModule>
------------------- Áß ·« ----------------------------
#SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire <Files ~ "\.(cgi|shtml)$"> SSLOptions +StdEnvVars </Files> <Directory "/var/www/cgi-bin"> SSLOptions +StdEnvVars </Directory>
--------------------- Áß ·« -----------------------------
¿ä´Â "home/root2/html" ÀÌÇÏÀÇ ¸ðµç µð·ºÅ丮¿¡¼ cgi »ç¿ëÀÌ ÀÚÀ¯·Î¿ö¾ß ÇÑ´Ù´Â °ÍÀÔ´Ï´Ù. "var/www/cgi-bin" ÀÌ ¾Æ´Ï¶ó¿ä. Áï, À¥»ó¿¡¼ htto://µµ¸ÞÀÎ/ÇÏÀ§ µð·ºÅ丮/*.cgi ¸¦ ½ÇÇà½ÃÅ°°íÀÚ ÇÕ´Ï´Ù.
°£´ÜÇÑ °Í °°¾Æ ´ýºµé¾ú´Âµ¥ ¸ð¸£´Â°Ô ÁËÀÎÁö¶ó ¸çÄ¥ ¹ãÀ» »õ¾îµµ ´äÀÌ ¾È³ª¿À´Â±º¿ä...Á¦¹ß À§ÀÇ ¼Ò½º¸¦ ¾Æ¿¹ ¼öÁ¤ÇØÁּż ¿Ã·ÁÁֽøé Á¤¸» Á¤¸» °¨»çÇÏ°Ú½À´Ï´Ù.
µµ¿ÍÁÖ¼¼¿ä!
|