Creating alias and script alias in Ubuntu
- by Jesi
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?