Skip to content

Commit

Permalink
add default vhost
Browse files Browse the repository at this point in the history
  • Loading branch information
drscream committed Aug 4, 2014
1 parent 6f59289 commit 27e49c9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion copy/opt/local/etc/httpd/conf.d/03-documentroot.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DocumentRoot "/opt/local/share/httpd/htdocs"
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
Options Indexes FollowSymLinks
Options -Indexes FollowSymLinks

# AllowOverride controls what directives may be placed in .htaccess files.
AllowOverride None
Expand Down
7 changes: 7 additions & 0 deletions copy/opt/local/etc/httpd/vhosts/00-default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<VirtualHost *:80>
DocumentRoot /opt/local/share/httpd/htdocs
<Directory /opt/local/share/httpd/htdocs>
Options -Indexes
Require all granted
</Directory>
</VirtualHost>
11 changes: 11 additions & 0 deletions copy/opt/local/share/httpd/htdocs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello Friend, this is kumquat</title>
</head>
<body>
<h1>Hello Friend,</h1>
<p>i'm kumquat the small webhosting management</p>
</body>
</html>

0 comments on commit 27e49c9

Please sign in to comment.