{"_id":"58fe142d180afa25006c797d","project":"54e7fca9e6e77d1900ed11f0","user":"54e7ff93c1c5e90d0048bd92","version":{"_id":"58fe142d180afa25006c7974","project":"54e7fca9e6e77d1900ed11f0","__v":2,"createdAt":"2017-04-24T15:05:17.571Z","releaseDate":"2017-04-24T15:05:17.571Z","categories":["58fe142d180afa25006c7975","58fe142d180afa25006c7976","58fe142d180afa25006c7977","58fe142d180afa25006c7978","591f725ffc05d30f00488267"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"__v":0,"category":{"_id":"58fe142d180afa25006c7976","version":"58fe142d180afa25006c7974","project":"54e7fca9e6e77d1900ed11f0","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-04-25T01:54:38.235Z","from_sync":false,"order":1,"slug":"tutorials","title":"Tutorials"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-08-27T19:17:29.156Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"CAUTION\",\n  \"body\": \"This documentation is incomplete and may not be completely accurate. Please consult the Apache documentation for any problems using this.\"\n}\n[/block]\nThis documentation assumes you have Apache/Httpd installed. If you do not, please consult apache's documentation or the many tutorials on installing a LAMP server.\n\nFirst, you must locate your root configuration for Apache/Httpd (generally */etc/httpd/httpd.config* or */etc/apache2/apache2.conf*). In that file, change/append the following.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DocumentRoot /srv/pufferpanel/public\\n<Directory \\\"/srv/pufferpanel/public\\\">\\n    AllowOverride All\\n    Order Allow,Deny\\n    Allow from all\\n    Require all granted\\n</Directory>\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\nYou can also create a virtualhost with this in it in if you host multiple websites.\n\nIf you are running PufferPanel v0.8.6 or earlier, please replace your `/srv/pufferpanel/public/index.php` file with the one below.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?php\\n\\nheader('Location: /index');\\n\\n?>\",\n      \"language\": \"text\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"If you are receiving \\\"500 Bad Request\\\" error, make sure to enable mod rewrite!\\nType `sudo a2enmod rewrite` in your terminal following it with `sudo service apache2 restart`\"\n}\n[/block]","excerpt":"","slug":"apache-configuration","type":"basic","title":"Apache Configuration"}

Apache Configuration


[block:callout] { "type": "danger", "title": "CAUTION", "body": "This documentation is incomplete and may not be completely accurate. Please consult the Apache documentation for any problems using this." } [/block] This documentation assumes you have Apache/Httpd installed. If you do not, please consult apache's documentation or the many tutorials on installing a LAMP server. First, you must locate your root configuration for Apache/Httpd (generally */etc/httpd/httpd.config* or */etc/apache2/apache2.conf*). In that file, change/append the following. [block:code] { "codes": [ { "code": "DocumentRoot /srv/pufferpanel/public\n<Directory \"/srv/pufferpanel/public\">\n AllowOverride All\n Order Allow,Deny\n Allow from all\n Require all granted\n</Directory>", "language": "text" } ] } [/block] You can also create a virtualhost with this in it in if you host multiple websites. If you are running PufferPanel v0.8.6 or earlier, please replace your `/srv/pufferpanel/public/index.php` file with the one below. [block:code] { "codes": [ { "code": "<?php\n\nheader('Location: /index');\n\n?>", "language": "text" } ] } [/block] [block:callout] { "type": "info", "body": "If you are receiving \"500 Bad Request\" error, make sure to enable mod rewrite!\nType `sudo a2enmod rewrite` in your terminal following it with `sudo service apache2 restart`" } [/block]