Random redirect

From askoh net
Jump to: navigation, search

There are no redirects in the namespace "* Download and Burn Ubuntu Desktop 7.10 (Gutsy Gibbon) for 32 Bit X86 System (Though our server is AMD64) from http://releases.ubuntu.com/7.10/

  1. Go to System>Admininstration>Synaptec Package Manager
  2. Search for no-ip
  3. Right click on no-ip and select Mark for Install
  4. Accept any dependencies/upgrades of other packages
  5. Click on Tick Mark to Start Installation
  6. After installation is complete, go to terminal and type sudo no-ip -C
  7. It will ask for no-ip username, password and the accounts that should be updated and also set an update interval (10 mins), when it asks to "Run a script after successful instal", Select No and your settings are written to /etc/no-ip.conf
  1. Create directories in /var/www of all the websites the server is going to host. In our case, they are htp://demo1.no-ip.org and http://demo2.no-ip.org. Type sudo mkdir /var/www/demo1.no-ip.org , hit enter and sudo mkdir /var/www/demo2.no-ip.org and hit enter. Create a simple index.html in each of these 2 directories.
  2. sudo pico /etc/apache2/apache2.conf , go to last line and add Servername Caartz.com , set ServerTokens Prod , set ServerSignature Off, type NameVirtualHost *:80 Save and exit and then restart Apache by typing sudo /etc/init.d/apache2 restart
  3. Now we need to create Virtual hosts of these websites. cd /etc/apache2/sites-available , and you see default there. open it by sudo pico /etc/apache2/sites-available/default . Remove the first line and change the second line to <VirtualHost *:80> . Observe that public directory is /var/www . So for each of our hosted websites,we need one similar file which tells apache what to do. We shall create simple config files for these. <VirtualHost *:80>

ServerName demo1.no-ip.org DirectoryIndex index.html DocumentRoot /var/www/demo1.no-ip.org </VirtualHost>

  1. Once both the config files are created, Enable the sites by typing sudo a2ensite demo1.no-ip.org , and sudo a2ensite demo2.no-ip.org . restart apache by sudo /etc/init.d/apache2 force-reload
# deb-src http://ftp.squeak.org/debian/ stable main  , and save and exit
  1. sudo su postgres -c psql template1
  2. template1=# ALTER USER postgres WITH PASSWORD 'secretPassword' ;
  3. template1=# \q
  4. sudo passwd -d postgres
  5. sudo su postgres -c passwd
  6. Enter the password as entered above
  1. Uncomment the line 'listen_addresses = 'localhost' '
  1. change md5 to password in IPV4
  1. sudo -u postgres createdb ARDB
  2. su postgres
  3. pg_restore -d ARDB ardb.tar
  4. restart postgres
  5. /etc/init.d/postgresql-8.2 restart
  1. LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so

LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy.http.so LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

<VirtualHost *:80> ServerName caartz.no-ip.org RewriteEngine On ProxyPreserveHost On DocumentRoot /var/www/caartz.no-ip.org

#Proxy the request to Seaside on port 8080 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:9091/seaside/caartz$1 [P,L] </VirtualHost>

<Proxy *> Order allow,deny Allow from all </Proxy>

ProxyVia Block

  1. sudo pico /etc/apache2/ports.conf and add Listen 9000 , this makes Apache to listen to port 80, which is default and also port 9000
  2. Add another virtual Host by, sudo pico /etc/apache2/sites-available/caartzLocal.conf and enter the following text. Note the changes in <VirtualHost localhost:9000>
  3. LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so

LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy.http.so LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

<VirtualHost localhost:9000> ServerName caartzLocal RewriteEngine On ProxyPreserveHost On DocumentRoot /var/www/caartz.no-ip.org

#Proxy the request to Seaside on port 8080 RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://localhost:9091/seaside/caartz$1 [P,L] </VirtualHost>

<Proxy *> Order allow,deny Allow from all </Proxy>

ProxyVia Block

Personal tools
Namespaces
Variants
Views
Actions
Navigation
Toolbox