Hi,
I use openca 0.9.1.3 under FreeBSD, and site root is /srv/www/ca for the CA. OpenCA's installation directory is /usr/local/openca.
When I try to initialize CA, I see a pop-up that asks for algorithm, then key length, then... "The requested URL /ca/pwd.html was not found on this server."
The file sits in /srv/www/ca/htdocs/ca/pwd.html
So why does the file request add a slash in front of the path ?
My virtual hosts for CA in Apache 2 is the following (checked this ten times...) :
NameVirtualHost 192.168.1.5:80
<VirtualHost 192.168.1.5:80> DocumentRoot /srv/www/ca/htdocs/ca SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 CustomLog /var/log/httpd/ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" <Directory "/srv/www/ca/htdocs/ca"> Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ "/srv/www/ca/cgi-bin/" <Directory "/srv/www/ca/cgi-bin"> AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost>
My configure line was :
./configure --with-openca-user=openca --with-openca-group=openca \ --with-web-host=192.168.1.5 --with-httpd-user=openca \ --with-httpd-group=openca --prefix=/usr/local/openca \ --with-httpd-fs-prefix=/srv/www/ca \ --with-hierarchy-level=ra --with-dist-user=Achatpublic.com \ --with-dist-group=Achatpublic.com --with-ca-organization=Achatpublic.com \ --with-ca-locality=Paris --with-ca-country=FR
The OpenCA configure options doesn't match the apache configuration. There are two possible working fixes:
1. Modify Apache's path
DocumentRoot /srv/www/ca/htdocs
2. Modify OpenCA's path
Apache (httpd.conf): DocumentRoot /srv/www/ca/htdocs/ca
OpenCA (config.xml): <option>
<name>ca_htdocs_url_prefix</name>
<value>/</value>
</option>Michael -- ------------------------------------------------------------------- Michael Bell Email: [EMAIL PROTECTED] ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482 (Computing Centre) Fax: +49 (0)30-2093 2704 Humboldt-University of Berlin Unter den Linden 6 10099 Berlin Email (private): [EMAIL PROTECTED] Germany http://www.openca.org
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Openca-Users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-users
