[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Is this a bug in the GUI admin
- Subject: [cobalt-users] Is this a bug in the GUI admin
- From: "Paul Alcock" <webmgr@xxxxxxxxxxxxxxxxxx>
- Date: Fri Jan 11 22:41:06 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
thanks to > Jonathan Michaelson I was reviewing my httpd.conf file looking
for a solution to why cgi's called in my secure domain would initially
respond with 'Page not available' but then would work fine if you backed up
a page and resubmitted.
Here's what I found...
I had created a site (using the GUI) that did not have the normal www. host
name
the host name I used was 'secure'
ie the FQD = secure.mydomain.net
But when I look at the code in the httpd.conf file this is what I found.
NameVirtualHost xxx.xxx.xxx.xxx
<VirtualHost xxx.xxx.xxx.xxx>
ServerName www.mydomain.net
RedirectMatch (.*)\cmd.exe$ http://127.0.0.1
RedirectMatch (.*)\default.ida$ http://127.0.0.1
RedirectMatch (.*)\root.exe$ http://127.0.0.1
ServerAdmin admin
ServerAlias mydomain.net
DocumentRoot /home/sites/sitexx/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^xxx.xxx.xxx.xxx(:80)?$
RewriteCond %{HTTP_HOST} !^www.mydomain.net(:80)?$
RewriteRule ^/(.*) http://www.mydomain.net/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/sitexx/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/sitexx/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>
(I have substituted .mydomain.net for my real domain name.)
(I have also substituted xxx.xxx.xxx.xxx for my real IP address.)
(I have substituted sitexx for my real site number)
The thing I think is important to note here is that
www.mydomain.net
should have been
secure.mydomain.net
At least that is how I see it.
So my question is....
Should I manually change the 'www' to 'secure' and restart the httpd?
And should the GUI system set these values to www, or should they be set to
the correct host name?
Thanks in advance, in particular thanks to > Jonathan Michaelson
Paul.