Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jan 26, 2011 11:28 pm 
Offline
Newbie

Joined: Wed Jan 26, 2011 11:20 pm
Posts: 2
Website: http://holosnetwork.com
Location: Missouri
I'm hosting a WordPress site on my Linode and using the .htaccess for WP "pretty" permalinks (rewrite). This works just fine delivered http. However, when https is called, the home page loads fine (because it's set as a static page), but all the other pages fail. I get a "file not found" error in my error.log

I know it's an .htaccess problem because if I turn permalinks off, SSL works fine.

Here is my .htaccess:
#BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Options +FollowSymLinks +SymLinksIfOwnerMatch
</IfModule>

#END WordPress


And here is the error.log for that site:

[Wed Jan 26 20:51:15 2011] [error] [client 76.0.5.118] File does not exist: /var/www/products-page, referer: https://www.holosnetwork.com/
[Wed Jan 26 20:51:16 2011] [error] [client 76.0.5.118] File does not exist: /var/www/favicon.ico

It's like WordPress wasn't even called for that page (which further solidifies the htaccess thing) because "products-page" is a WordPress page, not a file.

Please advise!


Top
   
 Post subject:
PostPosted: Wed Jan 26, 2011 11:59 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
It's probably not an .htaccess problem, unless you put something else in there. Either something is wrong with your Virtual Host configuration, or WordPress hates SSL as usual.

Please post the contents of your Virtual Host configuration file(s).

Also, if you're trying to secure the login and admin areas, see http://codex.wordpress.org/Administration_Over_SSL


Top
   
PostPosted: Thu Jan 27, 2011 9:49 am 
Offline
Newbie

Joined: Wed Jan 26, 2011 11:20 pm
Posts: 2
Website: http://holosnetwork.com
Location: Missouri
This, btw, is my only domain hosted on this server.

My first post contained the entire .htaccess so no, I haven't added anything else.

And I know WP hates SSL (which drives me nuts, I can't believe they don't have better support at this point) but I have used this method before for other WP sites. Basically it's a wp-config.php change that changes the site url based upon request. And it appears to be working properly because going to the home page successfully delivers over https. It has something to do with the static home page set as the root level.

Anyway, here's my vhost file

<VirtualHost 69.164.204.247:80>
ServerAdmin rchaider@gmail.com
ServerName holosnetwork.com
ServerAlias www.holosnetwork.com
DocumentRoot /var/www/
ErrorLog /var/www/logs/error.log
CustomLog /var/www/logs/access.log combined
</VirtualHost>

<VirtualHost 69.164.204.247:443>
SSLEngine On
SSLCertificateFile ******
SSLCertificateKeyFile *********
SSLCertificateChainFile *********

ServerAdmin rchaider@gmail.com
ServerName holosnetwork.com
ServerAlias www.holosnetwork.com
DocumentRoot /var/www/
ErrorLog /var/www/logs/error.log
CustomLog /var/www/logs/access.log combined

<directory /var/www>
allow from all
</directory>

</VirtualHost>


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group