瀏覽代碼

listen on port 80 instead

many php scripts do $_SERVER[SERVER_PORT] and the port 8000
confuses them sadly
Girish Ramakrishnan 8 年之前
父節點
當前提交
e804e8ea78
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      CloudronManifest.json
  2. 1 1
      Dockerfile
  3. 1 1
      apache2-app.conf

+ 1 - 1
CloudronManifest.json

@@ -6,7 +6,7 @@
   "tagline": "An empty LAMP stack",
   "version": "0.3.0",
   "healthCheckPath": "/",
-  "httpPort": 8000,
+  "httpPort": 80,
   "manifestVersion": 1,
   "website": "https://cloudron.io/",
   "contactEmail": "apps@cloudron.io",

+ 1 - 1
Dockerfile

@@ -46,7 +46,7 @@ RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
 RUN sed -e "s,MaxSpareServers[^:].*,MaxSpareServers 5," -i /etc/apache2/mods-available/mpm_prefork.conf
 
 RUN a2disconf other-vhosts-access-log
-RUN echo "Listen 8000" > /etc/apache2/ports.conf
+RUN echo "Listen 80" > /etc/apache2/ports.conf
 RUN a2enmod rewrite
 
 # configure mod_php

+ 1 - 1
apache2-app.conf

@@ -1,4 +1,4 @@
-<VirtualHost *:8000>
+<VirtualHost *:80>
     DocumentRoot /app/data/public
 
     ErrorLog "|/bin/cat"