Thanks for the helpful replies, everyone!  I think you all pointed out
my simple mistake: specifying port 8080 when I wanted to hit HTTPS
which is configured for port 443!

Everything works great now!  (Except I had to also copy over
parameters_8080.py to parameters_443.py - which I don't think is
mentioned in the book.)

On Feb 26, 3:48 pm, Thadeus Burgess <[email protected]> wrote:
> His
>
> <Location /admin>
>    Deny from all
> </Location>
>
> Statement is correct. Remember he is using port 8080 as a substitute
> for port 80. SO he does not want access to admin under https, hence
> the Deny  from all in the HTTP Vritualhost.
>
> This is why hisSSLVirtualHost does not have this statement, since
> itssslit allows access to /admin. The problem is he has mapped it to
> port 443 (which is the standard, so you don't have to specify port)
> but trying to access it at
>
> https://exmaple.com:8080which is incorrect it should not have the
> :8080 in it OR he should remapSSLto another port aside from 8080
> which is already being used by the first virtualhost declaration.
>
> -Thadeus
>
> On Fri, Feb 26, 2010 at 4:21 PM, Tim Alexander <[email protected]> wrote:
> > Not sure why this isn't going through off the google groups page, but I'll
> > just reply via email.
> > The problem centers around the port you're hitting it on. You have admin
> > access disabled on 8080 via the below lines:
>
> >        <Location /admin>
> >                Deny from all
> >        </Location>
> > that's why http://myserverIP:8080 doesn't work when clicking on the link.
> > The reason https://myserverIP:8080/admin doesn't work, is because you're
> > trying to access the http port via https. To visit myserverIP on port 443,
> > go tohttps://myserverIP/adminsince https defaults to port 443 on all
> > current browsers. If you want to specify a port, feel free to
> > do https://myserverIP:443/admin
> > Either of those will get you in. Also, shouldn't be any issues just doing
> > everything over https, viahttps://myserverIP/that's how I'm currently
> > running everything.
> > On Fri, Feb 26, 2010 at 4:06 PM, snfctech <[email protected]> wrote:
>
> >> apache2 fedora10 web2py1.75.5
>
> >> I set up my web2py.conf virtual host file per the instructions on
> >> p285-288 of the web2py book (2nd edition).  The main differences from
> >> the examples are that I'm running Fedora10 and serving web2py on port
> >> 8080 for access over aLAN.  I also removed "display-name=%{GROUP}"
> >> from the WSGIDaemonProcess directive, per a thread I found on this
> >> group.
>
> >> I can hit the welcome app fine from other machines by hitting
> >>http://myserverIP:8080.  When I click on the link for the
> >> administrative interface, I get a 403 error.  When I hit
> >>https://myserverIP:8080/adminI get a 303 error "The connection to
> >> myserverIP:8080 was interrupted while the page was loading."
>
> >> I'm pretty stuck at this point.  Any help would be greatly
> >> appreciated.
>
> >> Here is my web2py.conf:
>
> >> <VirtualHost *:8080>
>
> >>        ServerName web2py.order-system.com
> >>        WSGIDaemonProcess web2py user=apachegroup=apache
> >>        WSGIProcessGroup web2py
> >>        WSGIScriptAlias / /var/www/web2py/wsgihandler.py
>
> >>        <Directory /var/www/web2py>
> >>                AllowOverride None
> >>                Order Allow,Deny
> >>                Deny from all
> >>                <Files wsgihandler.py>
> >>                        Allow from all
> >>                </Files>
> >>        </Directory>
>
> >>        AliasMatch ^/([^/]+)/static/(.*) /var/www/web2py/applications/$1/
> >> static/$2
>
> >>        <Directory /var/www/web2py/applications/*/static/>
> >>                Order Allow,Deny
> >>                Allow from all
> >>        </Directory>
>
> >>        <Location /admin>
> >>                Deny from all
> >>        </Location>
>
> >>        <LocationMatch ^/([^/]+)/appadmin>
> >>                Deny from all
> >>        </LocationMatch>
>
> >>        ErrorLog logs/web2py-error_log
> >>        CustomLog logs/web2py-access_log common
>
> >> </VirtualHost>
>
> >> LoadModule ssl_module modules/mod_ssl.so
> >> NameVirtualHost *:443
>
> >> <VirtualHost *:443>
>
> >>        ServerName web2py.order-system.com
> >>        SSLEngine on
> >>        SSLCertificateFile /etc/httpd/ssl/server.crt
> >>        SSLCertificateKeyFile /etc/httpd/ssl/server.key
>
> >>        WSGIProcessGroup web2py
>
> >>        WSGIScriptAlias / /var/www/web2py/wsgihandler.py
>
> >>        <Directory /var/www/web2py>
> >>                AllowOverride None
> >>                Order Allow,Deny
> >>                Deny from all
> >>                <Files wsgihandler.py>
> >>                        Allow from all
> >>                </Files>
> >>        </Directory>
>
> >>        AliasMatch ^/([^/]+)/static/(.*) /var/www/web2py/applications/$1/
> >> static/$2
>
> >>        <Directory /var/www/web2py/applications/*/static/>
> >>                Order Allow,Deny
> >>                Allow from all
> >>        </Directory>
>
> >>        ErrorLog logs/web2py-error_log
> >>        CustomLog logs/web2py-access_log common
>
> >> </VirtualHost>
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "web2py-users" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group at
> >>http://groups.google.com/group/web2py?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/web2py?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to