Skip to content

Instantly share code, notes, and snippets.

@larstobi
Created November 24, 2011 11:37
Show Gist options
  • Select an option

  • Save larstobi/1391154 to your computer and use it in GitHub Desktop.

Select an option

Save larstobi/1391154 to your computer and use it in GitHub Desktop.
Yum repo apache config
<VirtualHost *:80>
DocumentRoot /var/yum.example.net/htdocs
ServerName yum.example.net
Options -Indexes -FollowSymlinks
<Directory "/var/yum.example.net/htdocs/yum">
AllowOverride None
Options +Indexes
Order allow,deny
Allow from all
</Directory>
TransferLog /var/log/httpd/yum.example.net.log
ErrorLog /var/log/httpd/yum.example.net.error.log
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/yum.example.net.crt
SSLCertificateKeyFile /etc/ssl/private/yum.example.net.key
DocumentRoot /var/yum.example.net/htdocs
ServerName yum.example.net
Options -Indexes -FollowSymlinks
<Directory "/var/yum.example.net/htdocs/yum">
AllowOverride None
Options +Indexes
Order allow,deny
Allow from all
</Directory>
TransferLog /var/log/httpd/yum.example.net.log
ErrorLog /var/log/httpd/yum.example.net.error.log
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment