Difference between revisions of "Aws"

From Wiki2
Line 11: Line 11:


====setting up accounts====
====setting up accounts====
  useradd -d/home/sitebuil sitebuil  
  useradd -d/home/sitebuil sitebuil
  passwd sitebuil
  passwd sitebuil
create a publichtml and set permissions
create a publichtml and set permissions
Line 20: Line 20:


====apache etc/httpd.conf setup====
====apache etc/httpd.conf setup====
<pre>
<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disable


<IfModule mod_userdir.c>
#
#
# To enable requests to /~user/ to serve the user's public_html
# UserDir is disabled by default since it can confirm the presence
# directory, remove the "UserDir disable" line above, and uncomment
# of a username on the system (depending on home directory
# the following line instead:
# permissions).
#
#
UserDir public_html
#UserDir disable


#
</IfModule>
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
UserDir public_html


</IfModule>
#
 
# Control access to UserDir directories.  The following is an example
#
# for a site where these directories are restricted to read-only.
# Control access to UserDir directories.  The following is an example
#
# for a site where these directories are restricted to read-only.
<Directory /home/*/public_html>
#
AllowOverride FileInfo AuthConfig Limit
<Directory /home/*/public_html>
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
AllowOverride FileInfo AuthConfig Limit
<Limit GET POST OPTIONS>
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Order allow,deny
<Limit GET POST OPTIONS>
Allow from all
Order allow,deny
</Limit>
Allow from all
<LimitExcept GET POST OPTIONS>
</Limit>
Order deny,allow
<LimitExcept GET POST OPTIONS>
Deny from all
Order deny,allow
</LimitExcept>
Deny from all
</Directory>
</LimitExcept>
</pre>
</Directory>

Revision as of 15:40, 4 January 2012

name, webserver

mckenna.tim

user, bitnami


ami, server hpkey.pem for cygwin hpkey.ppk for winscp ssh -i .ssh/hpkey.pem ec2-user@ec2-50-17-136-39.compute-1.amazonaws.com

setting up accounts

useradd -d/home/sitebuil sitebuil
passwd sitebuil

create a publichtml and set permissions

[root@openeyeworld home]# chmod ugo+r /home/sitebuil
[root@openeyeworld home]# cd sitebuil/
[root@openeyeworld sitebuil]# chmod ugo+rx -R public_html

apache etc/httpd.conf setup

<IfModule mod_userdir.c>
	#
	# UserDir is disabled by default since it can confirm the presence
	# of a username on the system (depending on home directory
	# permissions).
	#
	#UserDir disable

	#
	# To enable requests to /~user/ to serve the user's public_html
	# directory, remove the "UserDir disable" line above, and uncomment
	# the following line instead:
	#
	UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
	AllowOverride FileInfo AuthConfig Limit
	Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
	<Limit GET POST OPTIONS>
		Order allow,deny
		Allow from all
	</Limit>
	<LimitExcept GET POST OPTIONS>
		Order deny,allow
		Deny from all
	</LimitExcept>
</Directory>