Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jan 14, 2011 2:37 pm 
Offline
Senior Newbie

Joined: Tue Feb 02, 2010 5:22 pm
Posts: 5
Hi,

I have an Ubuntu 10 x64 server edition machine. I got a second IP and configured /etc/network/interfaces like so (actual IPs and gateways removed):

Code:
auto lo
iface lo inet loopback

#iface eth0 inet dhcp

auto eth0
auto eth0:0

iface eth0 inet static
address [ my first IP ]
netmask 255.255.255.0
gateway [ my first gateway ]

iface eth0:0 inet static
address [ my second IP ]
netmask 255.255.255.0
gateway [ my second gateway ]


/etc/apache2/ports.conf:

Code:
Listen 80
NameVirtualHost [ my first IP ]:80
NameVirtualHost [ my second IP ]:80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.
    Listen 443
    NameVirtualHost [ my first IP - some site is running SSL successfully using it ]:443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>


/etc/apache2/sites-enabled/mysite.conf:

Code:
<VirtualHost [my second IP ]:80>
   ServerName mysite.com
   Include /var/www/mysite.com/djangoproject/apache/django.conf
</VirtualHost>
[/conf]


Then when visiting http://[mysite].com:80 or http://[mysite].com, I get:

Code:
An error occurred during a connection to [mysite].com.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)


My guess is that the configuration file is not being picked up, and apache is therefore looking for the default-ssl file, which is not in conf-enabled. If I were to configure that file properly, it seems I would successfully connect to whatever default directory is specified in the default-ssl file. But I want to connect to my website.

Any ideas?

Thanks in advance!


Top
   
 Post subject:
PostPosted: Fri Jan 14, 2011 3:07 pm 
Offline
Senior Newbie

Joined: Tue Feb 02, 2010 5:22 pm
Posts: 5
So... to anyone having this problem: try clearing your browser cache! Worked for me after hours of frustrating debugging.


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


Who is online

Users browsing this forum: No registered users and 2 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