Przeglądaj źródła

Fixed the server config - just the domain name fetches the right pg.

Miti Mazmudar 4 lat temu
rodzic
commit
c6580ddba4
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      docker/Dockerfile

+ 3 - 0
docker/Dockerfile

@@ -61,6 +61,8 @@ RUN git clone https://git-crysp.uwaterloo.ca/miti/Apache_PHP_extension.git && \
 WORKDIR /root/graphene/LibOS/shim/test/apps/apache
 #Modifying the Makefile to generate the php module.
 RUN sed -i s/'LISTEN_HOST ?= 127.0.0.1'/'LISTEN_HOST ?= 0.0.0.0'/g Makefile
+RUN sed -i s/'LISTEN_PORT ?= 8001'/'LISTEN_PORT ?= 80'/g Makefile
+
 RUN sed -i 's:testdata ssldata:ssldata $(INSTALL_DIR)/modules/libphp7.so:' Makefile 
 RUN sed -i s/"'-'"/"'-' | tr '+' 'p'"/g Makefile #Fix for stdc++ to be named as a key sgx.trusted_files.stdcpp in the autogenerated manifest. 
 #Copy the PHP 7 archive (PHPCPP requires at least version 7) 
@@ -87,6 +89,7 @@ RUN echo "extension_dir=/root/graphene/LibOS/shim/test/apps/apache/install/modul
 RUN cp /root/source/Apache_PHP_extension/*.php install/htdocs
 #Fix the configuration file for Apache
 RUN printf '\nAcceptFilter http none\n<IfModule mime_module>\n    AddType application/x-httpd-php .php\n</IfModule>\n' >> install/conf/httpd.conf 
+RUN sed -i 's/DirectoryIndex.*/DirectoryIndex index.php index.html/g' install/conf/httpd.conf
 
 WORKDIR /root
 COPY deploy_enclaves.sh ./