WebFaction
Community site: login faq

I recently rebuilt a site with Django and moved the hosting from Dreamhost to Webfaction

I worked in kind of a roundabout fashion and ended up with the old php site on 'shantiyoga.ca' and the new Django site on 'www.shantiyoga.ca'. I think things got confused between Dreamhost and Webfaction while the DNS was refreshing.

I set up a url redirect app to try and remedy the situation. It didn't appear to work so I thought to cancel the Dreamhost account the old site was on, thinking it would force things to work

Now I have nothing. Site Temporarily Unavailable error id: "bad_httpd_conf" on both shantiyoga.ca and www.shantiyoga.ca

Perhaps I need to wait it out, could this have something to do with DNS?

asked 23 Feb '11, 01:05

shipwreck's gravatar image

shipwreck
77613
accept rate: 50%

when I go to: www.shantiyoga.ca I'm getting the site. But when I go to: shantiyoga.ca I just get a directory listing with your .htaccess file. Were you planning on setting up a 301 redirect from shantiyoga.ca to www.shantiyoga.ca?

(23 Feb '11, 01:09) SwitchBlade SwitchBlade's gravatar image

Here's the code I use in my .htaccess files for 301 redirects:

    
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301]
(23 Feb '11, 01:12) SwitchBlade SwitchBlade's gravatar image
1

I'm not seeing that error. I am seeing the site working correctly on www.shantyiyoga.ca but just a directory listing a broken .htaccess file at shantiyoga.ca. It looks like this is being caused by the name of the .htaccess file. It should just be .htaccess it doesn't need a .htm extension.

(23 Feb '11, 01:17) klynton klynton's gravatar image

What type of application are you using for shantyiyoga.ca? php/cgi/static?

(23 Feb '11, 01:18) SwitchBlade SwitchBlade's gravatar image

I had to specifically ./start and ./stop the server, a ./restart wasn't doing it

My oversight. Thank you so much for your time

permanent link

answered 23 Feb '11, 15:00

shipwreck's gravatar image

shipwreck
77613
accept rate: 50%

Ha! don't worry about it. Odd the server didn't reload the config after a restart and needed a stop start instead. Interesting...

(23 Feb '11, 15:06) SwitchBlade SwitchBlade's gravatar image

I'm pretty baffled... My client can see the site on her machine, apparently you guys can... I can't see it on either domain!

This is my .htaccess on my Static/CGI/PHP app

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^shantiyoga.ca$ [NC]
RewriteRule ^(.*)$ http://www.shantiyoga.ca/$1 [R=301,L]
permanent link

answered 23 Feb '11, 14:35

shipwreck's gravatar image

shipwreck
77613
accept rate: 50%

Now it's saying Server Not found?

(23 Feb '11, 14:36) shipwreck shipwreck's gravatar image

I just checked and I see the same thing as last night. www.shantiyoga.ca is working, and shantyoga.ca shows a directory listing with the .htaccess file.

Are you able to resolve the domain names through DNS?

(23 Feb '11, 14:52) SwitchBlade SwitchBlade's gravatar image
1

I just checked it again and it's working fine on both: www.shantiyoga.ca shantiyoga.ca

Looks like you got it figured out :-)

(23 Feb '11, 14:57) SwitchBlade SwitchBlade's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×111
×3
×1

question asked: 23 Feb '11, 01:05

question was seen: 4,077 times

last updated: 23 Feb '11, 15:06

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM