# Apache http configuration for the virtual host used by the ADS service # This file should be saved as "ads.conf", customized to reflect the # local host name and directory locations, and included from the main # http server configuration using a directory such as: # Include ads.conf # # For more details, see: http://ads.harvard.edu/mirrors/ # CONFIGURE: # Put here the ip address of your server's interface which # will respond to the httpd requests, followed by the port # number (80 is the default, unless you are using some kind # of proxy don't change that) # CONFIGURE: # Declare the canonical server name for this ADS mirror site # (example: adsabs.harvard.edu ServerName adsabs.harvard.edu # Log format used by ADS; this saves the ADS cookie id and # any additional proxy information in the log, so please leave as is # Proxy information is saved LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\" \"%{Cookie}i\" \"%{Via}i\"" cookieid # CONFIGURE: # Declare the location of the http access and log files; # these directories must exist and be readable by the user ads CustomLog /ads/www/logs/access_log cookieid ErrorLog /ads/www/logs/error_log # The timeout is high for our server because we serve article images, # which may require long transfers. For a mirror site that only runs # the abstract server, setting the timeout to 4 minutes should be plenty. Timeout 480 # The directory index and access control file names DirectoryIndex index.html AccessFileName .htaccess # CONFIGURE: # Declare the root of the HTML document tree; this directory # should exist and should be owned by the ads user DocumentRoot /ads/www/htdocs # allow .htaccess files to override options set for the # document root directory AllowOverride All Options FollowSymLinks # the following line for apahce httpd <= 2.2 Order allow,deny Allow from all # the following line for apache httpd >= 2.4 # Require all granted # CONFIGURE: # Declare the location of the cgi-bin directory; this # should exist and should be owned by the ads user ScriptAlias /cgi-bin/ /ads/www/cgi/bin/ # allow .htaccess files to override options set for the # /cgi-bin directory AllowOverride All Options FollowSymLinks # the following line for apahce httpd <= 2.2 Order allow,deny Allow from all # the following line for apache httpd >= 2.4 # Require all granted