Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I want to have around 60 repositories of projects and I want to serve them from a dedicated remote server(ubuntu) with the help of mercurial server so that all my developers will be able to update their changes. I have followed this article in order to do that but stocked in the Apache Configuration Step (section 2.5 > 2.5.4). I have some following questions:

  1. What are the steps I need to follow to make apache to serve /home/hg/repositories/private/hgweb.cgi when I enter dev.example.com/private ?

  2. Is my virtual host file is correct or do I need to change anything ?

  3. I bought the example.com and how to make it to serve dev.example.com/private. Do I need to add A name(like : subdomain.example.com and then IP of my server) in the cpannel of hosting company?

        ServerAdmin webmaster@localhost
        ServerName dev.example.com
    
        ScriptAlias /private /home/hg/repositories/private/hgweb.cgi
        <Directory /home/hg/repositories/private/>
                Options ExecCGI FollowSymlinks
                AddHandler cgi-script .cgi
                DirectoryIndex hgweb.cgi
                AuthType Basic
                AuthName "Mercurial repositories"
                AuthUserFile /home/hg/tools/hgusers
                Require valid-user
        </Directory>
    
        ErrorLog ${APACHE_LOG_DIR}/dev.example.com_error.log
    
        # Possible values include: debug, info, notice, warn, error, cr$
        # alert, emerg.
        LogLevel warn
    
        CustomLog ${APACHE_LOG_DIR}/dev.example.com_ssl_access.lo$
    
        SSLEngine on
        SSLCertificateFile "/etc/apache2/ssl/dev.example.com.crt"
        SSLCertificateKeyFile "/etc/apache2/ssl/dev.example.com.k$
    

NOTE: The above is my virtual host file. I have not enabled the site yet and also not changed any host or hostname or httpd.conf file.

share|improve this question
What do you mean when you say 3. I bought the example.com? Do you mean that you have purchased your own domain such as example.com? – HeatfanJohn Sep 11 '12 at 17:19
Also, what happens when you go to /private from the server itself? Does it execute /private/hgweb.cgi? – HeatfanJohn Sep 11 '12 at 17:20
I have purchased example.com (just for example). And How to check from the server whether it execute /private/hgweb.cgi ? – Subhransu Sep 11 '12 at 18:34
localhost/private ... although you may need to setup a virtual host for localhost for that to work – HeatfanJohn Sep 11 '12 at 20:00

closed as off topic by Su', John Conde Sep 27 '12 at 1:10

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.