Creating alias and script alias in Ubuntu

Posted by Jesi on Ask Ubuntu See other posts from Ask Ubuntu or by Jesi
Published on 2012-10-04T09:21:29Z Indexed on 2012/10/04 9:50 UTC
Read the original article Hit count: 450

Filed under:
|

I am configuring LG looking glass on Ubuntu. I have followed this link. In step 3 they said to add following two lines to webserver config:

Alias /lg/favicon.ico /usr/local/httpd/htdocs/lg/favicon.ico
ScriptAlias /lg /usr/local/httpd/htdocs/lg/lg.cgi

I have added it to my webserver config:

#vi /etc/apache2/sites-available/default

Alias /lg/favicon.ico "/usr/local/httpd/htdocs/lg/favicon.ico"
    <Directory "/usr/local/httpd/htdocs/lg/favicon.ico">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

ScriptAlias /lg/  "/usr/local/httpd/htdocs/lg/lg.cgi"
        <Directory "/usr/local/httpd/htdocs/lg/lg.cgi">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from 127.0.0.0/255.0.0.0 ::1/128

        </Directory>

When I tried http://127.0.0.1/lg in my browser, it shows not found.

I am new with web-server, can anyone help me please?

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about apache