You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by adwinwijaya <ad...@yahoo.com.au> on 2004/05/04 01:22:09 UTC
[users@httpd] Alias doesnt work with SSL ?
hello apache users,
I have a problem with alias and SSL in Apache 2.0.47 (Fedora Core 1).
here is part of my httpd.conf (the rest is not touched, same as
default)
-------------------------------------------------------------------
<VirtualHost *:80>
ServerAdmin omnix@omnix.se
DocumentRoot /var/www/html/awillr/www
ServerName awillr.com.au
ErrorLog logs/awillr-error_log
CustomLog logs/awillr_log common
DirectoryIndex home index.php index.html
AliasMatch .*/Images/(.*) "/var/www/html/awillr/www/Images/$1"
Alias /images "/var/www/html/awillr/www/Images/"
Alias /Images "/var/www/html/awillr/www/Images/"
Alias /files "/var/www/html/awillr/www/files/"
Alias /plain "/var/www/html/awillr/www/plain.php/"
Alias /print "/var/www/html/awillr/www/print.php/"
Alias /Admin/_submit "/var/www/html/awillr/www/Admin/_submit/"
Alias /Admin "/var/www/html/awillr/www/Admin/go.php/"
Alias /Member/Correspondence/_submit "/var/www/html/awillr/www/Member/Correspondence/_submit/"
Alias /_submit "/var/www/html/awillr/www/_submit/"
Alias / "/var/www/html/awillr/www/home.php/"
<Directory />
AllowOverride All
Options Indexes
</Directory>
</VirtualHost>
-------------------------------------------------------------------
This configuration works very well in environtment without httpd.
let me explain how it work:
first, if you type:
http://www.myhomepage.com/name_directory/filename.php
it will load home.php first, and then home.php will call the file
/name_directory/filename.php
but if i use SSL, it will call filename.php directly so it wont
display correctly.
note: home.php is the main template that I used for every page.
can someone tell me how to solve this problem ?
thank you
regards
adwin
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re[2]: [users@httpd] Alias doesnt work with SSL ?
Posted by adwinwijaya <ad...@yahoo.com.au>.
Hello Joshua,
Tuesday, May 4, 2004, 11:45:25 AM, you wrote:
JS> I mean you need a single <virtualhost ...:443> section. Since you already
JS> had ssl working, you must have already had such a section. So you
JS> shouldn't have added a new one, simply adjusted the configuration of the
JS> existing virtual host.
JS> Joshua.
Thanks for your help :) .. now my ssl works very well :)
--
Best regards,
adwin
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Alias doesnt work with SSL ?
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 4 May 2004, adwinwijaya wrote:
> Hello Joshua,
> Tuesday, May 4, 2004, 9:52:08 AM, you wrote:
>
> JS> You can't simply create a second virtual host. If SSL is already working,
> JS> that means you have an existing virtual host for it someplace that is
> JS> serving the requests. Perhaps it is in ssl.conf? You need to find that
> JS> and add the relevant directives.
> JS> Joshua.
>
> Do you mean I need to put those VirtualHost (that contain Aliases)
> inside ssl.conf ?
> and should i remove <virtualhost *:443> inside the httpd.conf ?
> thx
I mean you need a single <virtualhost ...:443> section. Since you already
had ssl working, you must have already had such a section. So you
shouldn't have added a new one, simply adjusted the configuration of the
existing virtual host.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re[2]: [users@httpd] Alias doesnt work with SSL ?
Posted by adwinwijaya <ad...@yahoo.com.au>.
Hello Joshua,
Tuesday, May 4, 2004, 9:52:08 AM, you wrote:
JS> You can't simply create a second virtual host. If SSL is already working,
JS> that means you have an existing virtual host for it someplace that is
JS> serving the requests. Perhaps it is in ssl.conf? You need to find that
JS> and add the relevant directives.
JS> Joshua.
Do you mean I need to put those VirtualHost (that contain Aliases)
inside ssl.conf ?
and should i remove <virtualhost *:443> inside the httpd.conf ?
thx
--
Best regards,
adwin
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Alias doesnt work with SSL ?
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 4 May 2004, adwinwijaya wrote:
> It still doesnt work :(
>
> I created 2 VirtualHost :
You can't simply create a second virtual host. If SSL is already working,
that means you have an existing virtual host for it someplace that is
serving the requests. Perhaps it is in ssl.conf? You need to find that
and add the relevant directives.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: {SPAM 03.0} [users@httpd] Alias doesnt work with SSL ?
Posted by adwinwijaya <ad...@yahoo.com.au>.
Hello Joshua,
Tuesday, May 4, 2004, 9:25:25 AM, you wrote:
JS> Either place all the alias directives outside the <VirtualHost>, or repeat
JS> them inside the <VirtualHost ...:443>. At the moment, you have
JS> specifically limitted that configuration to only port 80 -- the non-ssl
JS> host.
JS> Joshua.
It still doesnt work :(
I created 2 VirtualHost :
<VirtualHost *:80>
-- still same --
</VirtualHost>
and
<VirtualHost *:443>
-- same as above --
</VirtualHost>
but the ssl mode ignoring
Alias / "/var/www/html/awillr/home.php"
so the home.php never called
--
Best regards,
adwinwijaya
mailto:adwinwijaya@yahoo.com.au
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: {SPAM 03.0} [users@httpd] Alias doesnt work with SSL ?
Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 4 May 2004, adwinwijaya wrote:
> but if i use SSL, it will call filename.php directly so it wont
> display correctly.
> note: home.php is the main template that I used for every page.
Either place all the alias directives outside the <VirtualHost>, or repeat
them inside the <VirtualHost ...:443>. At the moment, you have
specifically limitted that configuration to only port 80 -- the non-ssl
host.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org