[blogs-web/oscp] Land OSCP related project files for blogs-web
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blogs-web/oscp] Land OSCP related project files for blogs-web
- Date: Sat, 10 Nov 2018 19:29:48 +0000 (UTC)
commit 95559c273edad000d1f87d6afb98c29c3e2defb9
Author: Andrea Veri <averi redhat com>
Date: Sat Nov 10 20:29:32 2018 +0100
Land OSCP related project files for blogs-web
Dockerfile | 17 +++++++++++++++++
blogs.gnome.org.conf | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+)
---
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..22f0938
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM centos/httpd-24-centos7
+
+USER root
+
+RUN yum install -y epel-release && yum update -y
+RUN rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
+RUN yum install php71 php71-php-cli php71-php-common php71-php-curl php71-php-gd php71-php-intl
php71-php-json php71-php-mbstring php71-php-mcrypt php71-php-mysql php71-php-opcache php71-php-readline
php71-php-soap php71-php-xml php71-php-xmlrpc php71-php-zip -y
+
+RUN mkdir -p /srv/http/blogs.gnome.org/html
+RUN chown 1001:1001 -R /srv/http/blogs.gnome.org/html
+
+COPY blogs.gnome.org.conf /etc/httpd/conf.d
+
+EXPOSE 8443
+
+USER 1001
+ENTRYPOINT ["/usr/bin/run-httpd"]
diff --git a/blogs.gnome.org.conf b/blogs.gnome.org.conf
new file mode 100644
index 0000000..6f27099
--- /dev/null
+++ b/blogs.gnome.org.conf
@@ -0,0 +1,50 @@
+<VirtualHost *:8443>
+ ServerAdmin gnome-sysadmin gnome org
+ ServerName blogs.gnome.org
+ ServerAlias blog.gtk.org
+
+ DocumentRoot /srv/http/blogs.gnome.org/html
+ DirectoryIndex index.php
+ DefaultIcon /favicon.ico
+
+ <IfModule mod_deflate.c>
+ AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
+ </IfModule>
+
+ SSLEngine on
+ SSLCertificateFile /var/serving-cert/tls.crt
+ SSLCertificateKeyFile /var/serving-cert/tls.key
+
+ # Redirects for blogs that have changed their URL.
+ Redirect permanent /ryanl https://blogs.gnome.org/desrt/
+ Redirect permanent /herzi http://herzi.eu/
+ Redirect permanent /lucasr http://lucasr.org/
+ Redirect permanent /woody https://www.dragonsreach.it/
+ Redirect permanent /gtk https://blog.gtk.org/
+</VirtualHost>
+
+<Directory /srv/http/blogs.gnome.org/html>
+ AllowOverride FileInfo Options Indexes
+ php_flag register_globals 0
+ php_flag display_errors 0
+
+ <Files *.php>
+ allow from all
+ </Files>
+
+ <Files wp-config.php>
+ Order allow,deny
+ Deny from all
+ </Files>
+
+ <Files xmlrpc.php>
+ Order Allow,Deny
+ SetEnvIf User-Agent "Jetpack by WordPress.com" GoodUserAgent
+ Allow from env=GoodUserAgent
+ </Files>
+
+ <FilesMatch "load\-(scripts|styles)\.php">
+ Order allow,deny
+ Deny from all
+ </FilesMatch>
+</Directory>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]