cat > conf/monkey.conf < 0) Timeout 15 # MaxClients : # ------------ # Limit on the number of clients who can simultaneously connect. MaxClients 20 # PidFile: # -------- # File where the server guards the process number when starting. PidFile /var/run/monkey.pid # AccessLog: # ---------- # Registration file of correct request. AccessLog $logdir/monkey-access.log # ErrorLog: # --------- # Registration file of incorrect request. ErrorLog $logdir/monkey-error.log # UserDir: # -------- # Directory name for users home (/~user). UserDir public_html # Indexfile : # ----------- # Number of the inicial file of aperture when calling a directory. Indexfile index.html index.htm # Server_ScriptAlias : # -------------------- # If you which to have CGI support (Common Gateway Interface), you should # define the directory where the executive scripts will be found,for that, # you should define an alias directory towards the original of the # following form: # # Server_ScriptAlias /name_of_alias/ original_path # Server_ScriptAlias /cgi-bin/ $cgibin # GetDir : # -------- # In case a starting file cannot be found for the required route through # the browser, it's possible to send the information from the directory # with it's respective contents (values on/off). GetDir on # HideVersion : # ------------- # For security reasons, sometimes people want to hide the version of his # own webserver to clients (values on/off). HideVersion off # Resume: # ------- # Allow to retrieve chunks of file (values on/off). Resume on # User : # ------ # If you want the webserver to run as a process of a defined user, you can # define it in this variable, so that the change of the user can done, # it's necessary to execute Monkey with root priviledges. In case it's # started by a user that doesn't have root priviledges, this variable will # be omitted. User www # AddScript # ------------ # If you which to process some file through an interpreter like PHP, you # can specify it with the following format: # # AddScript mime_type source_path_binary extension # # Example for PHP4.x: # -------------------- # AddScript application/x-httpd-php /home/my_home/php/bin/php php # # The above example defines that whatever file, it's extension being # "php", should be processed through by "/home/my_home/php/bin/php" # #AddScript application/x-httpd-php ${prefix}/bin/php php #AddScript application/x-httpd-php ${prefix}/bin/php php3 # VIRTUAL HOST : # -------------- # Virtualhost allow you to serve different files in different directories # all this directioned through the host address, which is sent through the # browser. # # Example: # # If you want to define for example www.example.org, when the request # arrives to the machine (supposedly already accepted through DNS server), # you should add the following entries: # # # VirtualServerName www.example.org # VirtualDocumentRoot /home/web/example/htdocs # VirtualScriptAlias /cgi-bin/ /home/web/example/cgi-bin # VirtualForceGetDir off # # # If you don't have a DNS Server installed, you can add your # virtual addresses in /etc/host and play with the loopback interface. =) # # ----------------- # ADVANCED CONFIG # ----------------- # Just change the next variables if you know what are you doing. # KeepAlive : # ----------- # Allow persistent connections. (on/off) KeepAlive on # MaxKeepAliveRequest # ------------------- # Maximun number of request per connection. (value > 0) MaxKeepAliveRequest 20 # KeepAliveTimeout # ---------------- # Number of seconds to wait for the next request in a persistent # connection (value > 0). KeepAliveTimeout 15 # Include # ------- # Allow you have your configure file in separate files. # # Example: # Include virtualhost.conf # Header_file and Footer_file # --------------------------- # # This variables allow you show information of configured files when # full directories are shown # Header_file .header Footer_file .footer # # # This files could exist in directories to show. # Max_IP # ------ # # Allow define the maximum of client connections # from same IP address to server (value = 0 disable this feature). Max_IP 5 # SymLink # ------- # Allow request to symbolic link files. # SymLink Off EOF