Browse Source

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

Miti Mazmudar 2 years ago
1 changed files with 3 additions and 0 deletions
  1. 3 0

+ 3 - 0

@@ -61,6 +61,8 @@ RUN git clone && \
 WORKDIR /root/graphene/LibOS/shim/test/apps/apache
 #Modifying the Makefile to generate the php module.
 RUN sed -i s/'LISTEN_HOST ?='/'LISTEN_HOST ?='/g Makefile
+RUN sed -i s/'LISTEN_PORT ?= 8001'/'LISTEN_PORT ?= 80'/g Makefile
 RUN sed -i 's:testdata ssldata:ssldata $(INSTALL_DIR)/modules/' 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 ./