Hi,

you are missing a line:

 ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin"

in your apache configuration (at least that's what you tell configure
where your cgi scripts shall be installed). 

You might also want to enable ssl and switch the port to 443, and
fine-tune the access to the directories of your ca installation. Please
refer to best practice guides for configuring apache for this.

Also, the ServerName does not match what you specified in the configure
arguments.

Martin

On 03/25/2015 04:45 AM, Vijay Anand wrote:
> Hi,
>
> I used the following configuration parameters.. and the apache virtual host
> configuration file...
>
> ./configure --with-openca-user=openca --with-openca-group=openca
> --with-web-host=snbi.ca.com --with-httpd-user=www-data
> --with-httpd-group=www-data --with-cgi-fs-prefix=/usr/lib/cgi-bin
> --with-htdocs-fs-prefix=/var/www --with-openca-prefix=/usr/local/openca/ca
> --with-etc-prefix=/usr/local/openca/ca/etc
> --with-module-prefix=/usr/local/openca/ca/modules
> --disable-external-modules --enable-dbi --enable-rbac --enable-scep
>
>
> cat /etc/apache2/sites-available/051-PKI-CA.conf
> <VirtualHost *:80>
> # The ServerName directive sets the request scheme, hostname and port that
> # the server uses to identify itself. This is used when creating
> # redirection URLs. In the context of virtual hosts, the ServerName
> # specifies what hostname must appear in the request's Host: header to
> # match this virtual host. For the default virtual host (this file) this
> # value is not decisive as it is used as a last resort host regardless.
> # However, you must set it for any further virtual host explicitly.
> #ServerName www.example.com
>
> ServerAdmin vjanand...@gmail.com
> DocumentRoot /var/www/ca
>         ServerName ca.snbi.openca.com
>         ServerAlias www.ca.snbi.openca.com
>
> # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
> # error, crit, alert, emerg.
> # It is also possible to configure the loglevel for particular
> # modules, e.g.
> #LogLevel info ssl:warn
>
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
>
> # For most configuration files from conf-available/, which are
> # enabled or disabled at a global level, it is possible to
> # include a line for only one particular virtual host. For example the
> # following line enables the CGI configuration for this host only
> # after it has been globally disabled with "a2disconf".
> #Include conf-available/serve-cgi-bin.conf
> </VirtualHost>
>
>
> I did a make, make install-offline and then started the openca daemons..
>
> I see that the required html pages are generated
>
> /var/www/ca$ ls
> cacert  crl  default.css  dynmenu-openca.css  images  index.html
>  index.html.template  main-openca.css  menu  menu-openca.css
>  openca-home-2.css  scripts
>
> but when I try to access the webpage I am unable to do so.
> Attached below is the snapshot of the error I get...
>
> [image: Inline image 1]
>
> Regards,
> Vijay
>
>



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Openca-Users mailing list
Openca-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to