Usually done in /etc/httpd/conf.d/ssl.conf
I comment out the virtual host in the above file and add the relevant data to my file.
NameVirtualHost 192.168.1.1:80
NameVirtualHost 192.168.1.1:443
<VirtualHost 192.168.1.1:80>
ServerName whatever.yoursite.com
DocumentRoot "/export/web/html"
ErrorLog logs/whatever.yoursite.com_error_log
CustomLog logs/whatever.yoursite.com_access_log common
Redirect / https://whatever.yoursite.com/
</VirtualHost>
<VirtualHost 192.168.1.1:443>
ServerName whatever.yoursite.com
DocumentRoot "/export/web/html"
ErrorLog logs/whatever.yoursite.com_error_log
CustomLog logs/whatever.yoursite.com_access_log common
##LogLevel debug
<Directory "/export/web/html">
Options FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
AuthName "LDAP Authorization"
AuthType Basic
### The next 2 lines are required in Apache 2.2
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPBindDN "ldapuser@ad_domain"
AuthLDAPBindPassword "password"
AuthLDAPURL "ldap://AD_Domain_Controller/ou=Users,dc=yoursite,dc=com?sAMAccountName?sub"
### Either use valid-user or ldap-user
#require valid-user
require ldap-user user1 user2 user3 user4
require ldap-user user5 user6 user7 user8
satisfy all
</Directory>
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /etc/httpd/conf/ssl/yoursite.com.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl/yoursite.com.key
SSLCertificateChainFile /etc/httpd/conf/ssl/bundle.crt
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</VirtualHost>
Tuesday, March 17, 2009
Apache 2.2 ldap setup
NameVirtualHost 192.168.x.x:80
<VirtualHost 192.168.x.x:80>
ServerName whatever.yoursite.com
DocumentRoot "/export/web/html"
ErrorLog logs/whatever.yoursite.com_error_log
CustomLog logs/whatever.yoursite.com_access_log common
##LogLevel debug
<Directory "/export/web/html">Options FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
AuthName "LDAP Authorization"
AuthType Basic
### The next 2 lines are required in Apache 2.2
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPBindDN "ldapusername@yourad"
AuthLDAPBindPassword "password"
AuthLDAPURL "ldap://fqdn_of_your_AD_server/ou=Users,dc=yoursite,dc=com?sAMAccountName?sub"
### Either use valid-user or ldap-user
#require valid-user
require ldap-user user1 user2 user3 user4
require ldap-user user5 user6 user7 user8
satisfy all
</Directory>
</VirtualHost>
<VirtualHost 192.168.x.x:80>
ServerName whatever.yoursite.com
DocumentRoot "/export/web/html"
ErrorLog logs/whatever.yoursite.com_error_log
CustomLog logs/whatever.yoursite.com_access_log common
##LogLevel debug
<Directory "/export/web/html">Options FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
AuthName "LDAP Authorization"
AuthType Basic
### The next 2 lines are required in Apache 2.2
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPBindDN "ldapusername@yourad"
AuthLDAPBindPassword "password"
AuthLDAPURL "ldap://fqdn_of_your_AD_server/ou=Users,dc=yoursite,dc=com?sAMAccountName?sub"
### Either use valid-user or ldap-user
#require valid-user
require ldap-user user1 user2 user3 user4
require ldap-user user5 user6 user7 user8
satisfy all
</Directory>
</VirtualHost>
Sunday, March 15, 2009
Sunday, March 1, 2009
Stop gossiping
Gossips cause distance
Avoid gossips
Gossips cause quarrels
Gossiping accompanies other sins
- Proverbs 16:28
28 A perverse man stirs up dissension, and a gossip separates close friends.
Avoid gossips
- Proverbs 20:19
19 A gossip betrays a confidence; so avoid a man who talks too much.
Gossips cause quarrels
- Proverbs 26:20
20 Without wood a fire goes out; without gossip a quarrel dies down.
Gossiping accompanies other sins
- 2 Corinthians 12:20
20 For I am afraid that when I come I may not find you as I want you to be, and you may not find me as you want me to be. I fear that there may be quarreling, jealousy, outbursts of anger, factions, slander, gossip, arrogance and disorder.
Remove anger
Don't be angry
Anger makes you a fool
Actively remove anger
Anger isn't holy
- Proverbs 29:8-11
8 Mockers stir up a city, but wise men turn away anger.
9 If a wise man goes to court with a fool, the fool rages and scoffs, and there is no peace.
10 Bloodthirsty men hate a man of integrity and seek to kill the upright.
11 A fool gives full vent to his anger, but a wise man keeps himself under control.
Anger makes you a fool
- Ecclesiastes 7:9
9 Do not be quickly provoked in your spirit, for anger resides in the lap of fools.
Actively remove anger
- Ephesians 4:31-32
31 Get rid of all bitterness, rage and anger, brawling and slander, along with every form of malice.
32 Be kind and compassionate to one another, forgiving each other, just as in Christ God forgave you. - Colossians 3:8 8 But now you must rid yourselves of all such things as these: anger, rage, malice, slander, and filthy language from your lips.
Anger isn't holy
- James 1:20
20 for man's anger does not bring about the righteous life that God desires.
Contentment
Lean on God
Be honest, stop arguing, and be content
- Philippians 4:11-13
11 I am not saying this because I am in need, for I have learned to be content whatever the circumstances.
12 I know what it is to be in need, and I know what it is to have plenty. I have learned the secret of being content in any and every situation, whether well fed or hungry, whether living in plenty or in want.
13 I can do everything through him who gives me strength.
Be honest, stop arguing, and be content
- James 4:1-3
1 What causes fights and quarrels among you? Don't they come from your desires that battle within you?
2 You want something but don't get it. You kill and covet, but you cannot have what you want. You quarrel and fight. You do not have, because you do not ask God.
3 When you ask, you do not receive, because you ask with wrong motives, that you may spend what you get on your pleasures.
Budgeting/Planning
Lack of planning leads to ruin
Plan ahead
Comments
- Luke 14:28-30
28 "Suppose one of you wants to build a tower. Will he not first sit down and estimate the cost to see if he has enough money to complete it?
29 For if he lays the foundation and is not able to finish it, everyone who sees it will ridicule him,
30 saying, 'This fellow began to build and was not able to finish.' - Proverbs 21:5
5 The plans of the diligent lead to profit as surely as haste leads to poverty.
Plan ahead
- Proverbs 13:16
16 Every prudent man acts out of knowledge, but a fool exposes his folly.
Comments
- "Trying" doesn't cut it. You plan for success.
Subscribe to:
Posts (Atom)