We saw a spate of cool weather days breaking up our summer heatwave. It gave us time to assess the damage from the drought and noted with interest the tough plants such as the vinca, cosmos, and marigolds that withstood the severe weather. Plus, we discover a surprise bloom from an unexpected 3-season flowering shrub–Encore azalea Autumn Monarch.
Easy being green
Going public, keeping private–with .htaccess
Ever since I went public with the garden blog residing in a subfolder of this server account, I’ve been dogged with issues trying to keep the main domain private and the subdomain public.
The solution finally manifested itself after I lost access to both domains after an IP change. Because the main domain only responded to specific IP requests via the .htaccess file, I had to make some changes. An .htaccess file in the subdomain directory with the appropriate lines finally resolved the issue.
For the main domain, I limited access to my IP address with the following:
# ALLOW ONLY SPECIFIC IPs
<Limit GET POST PUT>
Order Deny,Allow
Deny from all
Allow from xxx.xxx.xxx.xxx
</Limit>
I also had to permit public access to certain file-types, i.e. picture files, since my subdomain used the same WordPress content directory as the main domain:
# Allow only certain file types
<FilesMatch ".(ico|pdf|flv|jpg|jpeg|mp3|mpg|mp4|mov|wav|wmv|png|gif|swf|css|js)$">
Allow from All
</FilesMatch>
For the subdomain, I permitted the public GET, POST and PUT permissions:
# allow public access
<Limit GET POST PUT>
order allow,deny
allow from all
</Limit>
With the above, I retained privacy of my main domain, but gave public access to the subdomain served from a subfolder of the main WordPress site.
After the rain
Is that rain, Virginia?
Yes, that stuff falling out of the sky in buckets is rain. After more than a month without it, it almost seemed like some landscape on an alien planet as I watched it pour all over my garden. What a relief! The patchy brown bermuda grass lawn will love this, and everything that needed a drink will get a good soaking. Timing is everything…I had just installed a soaker hose in the front flower bed this past weekend. Those azaleas need some serious help.
Next up, humidity!