ssh question

Discussion in 'Site & Server Administration' started by skabt, Nov 14, 2012.

  1. #1
    my previous coder send me this :
    Look at /usr/local/directadmin/data/users/property/httpd.add. Copy the content.
    
    Then modify /usr/local/directadmin/data/users/property/httpd.conf and search for the abc.com container
    <VirtualHost 0.0.0.0:88>
            ServerName www.abc.com
    
    Paste the http.add content WITHIN the <VirtualHost 0.0.0.0:88> and </VirtualHost>
    
    Restart httpd by using /etc/init.d/httpd restart
    
    That's it.
    
    Code (markup):
    how i going to do that ?
    my knowledge on ssh is just using putty to connect to server, then nothing else ..
     
    Solved! View solution.
    skabt, Nov 14, 2012 IP
  2. #2
    Well, you would need

    Note: [ENTER] means -> Hit enter :p

    cd (change directory) - to change into that directory
    example: cd /usr/local/directadmin/data/users/property/ [ENTER]
    http://www.linfo.org/cd.html
    Code (markup):
    then

    vi - to open the file in vi editor
    example: vi htto.add [ENTER]
    http://www.cs.colostate.edu/helpdocs/vi.html
    Code (markup):
    in vi, you would need to copy the whole content of this file. You can do that with the following command
    :%y+
    http://stackoverflow.com/questions/1620018/vi-editor-copy-all-the-lines-to-clipboard
    Code (markup):
    now, exit out of httpd.add

    and enter httpd.conf with vi
    To search for a certain string in vi, just use the
    /
    command, followed by the string
    example: /www.abc.com [ENTER]

    To copy something with vi, either just *right click* or press p

    To restart, just type
    /etc/init.d/httpd restart [ENTER]

    Hope that helps
     
    GMF, Nov 14, 2012 IP
    skabt likes this.
  3. skabt

    skabt Banned

    Messages:
    285
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    123
    #3
    thanks bro ... i done it with ur help ...
    thanks again
     
    Last edited: Nov 24, 2012
    skabt, Nov 24, 2012 IP