Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-13-2008, 06:40 AM
kursed kursed is offline
Member
 
Join Date: Jan 2008
Posts: 57
Default Removing file names + SSH port change

Issue No: 1 - I want to remove .php from showing up when people access my forum/site. How can I do that? I tried following the guide put up by Hostican but couldn't get the desired results i.e. it still shows.

Issue No: 2 - I want to change the port of my SSH. I managed to do that in the concerned file on the VPS but then putty on my computer doesn't make a contact when I simply change the port. What else needs to be added to putty for it to be able to access my VPS?

Thanks in advance.
Reply With Quote
  #2  
Old 03-13-2008, 08:13 AM
thnet's Avatar
thnet thnet is offline
Senior Member
 
Join Date: Oct 2007
Location: basement
Posts: 125
Cool

Quote:
Originally Posted by kursed View Post
Issue No: 1 - I want to remove .php from showing up when people access my forum/site. How can I do that? I tried following the guide put up by Hostican but couldn't get the desired results i.e. it still shows.
.htaccess entries:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php



Quote:
Originally Posted by kursed View Post
Issue No: 2 - I want to change the port of my SSH. I managed to do that in the concerned file on the VPS but then putty on my computer doesn't make a contact when I simply change the port. What else needs to be added to putty for it to be able to access my VPS?
In PUTTY,
Session, tic the O SSH
insert the IP address for your VDS,
set the new port #;
in [Saved Sessions] type a server name like MyVDS#1
[Save] the session; procede to
[Open] ...

After that, whenever you open PUTTY,
highlight the session name,
[Load]
& PUTTY will use your new port.

If you have multiple servers, you can set a unique port on each of them, then save multiple sessions
& [Load] the session (server) you wish to work on.

Last edited by thnet; 03-13-2008 at 08:15 AM.
Reply With Quote
  #3  
Old 03-13-2008, 08:57 AM
kursed kursed is offline
Member
 
Join Date: Jan 2008
Posts: 57
Default

Issue: 1 - I've read similar entery in one of the articles in the knowledge base present on Hostican's website, but couldn't make it work. It doesn't produce the desired effects. Would you prefer it if I pasted a copy of my .htaccess and see if you can point out the fault?

Issue: 2 - And which files need to be updated on the VPS for the change of port to take place? Cos it seems the port hasn't changed after I made changes to /usr/etc/ssh/ssh_config.txt
Reply With Quote
  #4  
Old 03-14-2008, 02:30 AM
kursed kursed is offline
Member
 
Join Date: Jan 2008
Posts: 57
Default

Any answers people?
Reply With Quote
  #5  
Old 03-14-2008, 09:41 AM
lnxcode's Avatar
lnxcode lnxcode is offline
The British Kid
 
Join Date: Sep 2007
Location: Richmond, VA
Posts: 2,012
Send a message via AIM to lnxcode Send a message via Skype™ to lnxcode
Default

You could try:

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+)$ /$1.php [QSA,L]
__________________
Thanks,

Denis Motova
Affiliate / Operations Manager

HostICan Answers | Become a HostICan Affiliate | Create a Support Ticket.
Reply With Quote
  #6  
Old 03-14-2008, 04:37 PM
thnet's Avatar
thnet thnet is offline
Senior Member
 
Join Date: Oct 2007
Location: basement
Posts: 125
Default

Quote:
Originally Posted by kursed View Post

Issue: 2 - And which files need to be updated on the VPS for the change of port to take place?
Cos it seems the port hasn't changed after I made changes to /usr/etc/ssh/ssh_config.txt
/etc/ssh/sshd_config
Reply With Quote
  #7  
Old 03-14-2008, 10:03 PM
kursed kursed is offline
Member
 
Join Date: Jan 2008
Posts: 57
Default

This is my current .htaccess file in /public_html folder, I tried doing the above but still couldn't manage to get the desired results.

Code:
RewriteEngine on

RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.+)$ /$1.php [QSA,L]

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*


order deny,allow
deny from all
allow from all


order deny,allow
deny from all

AuthName *********.com
AuthUserFile /home/********/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/*******/public_html/_vti_pvt/service.grp
RewriteCond %{HTTP_HOST} ^*********.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.********.com$
RewriteRule ^/?$ http://******.com/forum [R=302,L]
Reply With Quote
Reply

Tags
change, file, names, port, removing, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drupal Install Problem... Hotwire Virtual Private Servers (VPS) 14 05-22-2008 10:04 AM
Problem with File Owner = None? Simple SSH Command! Scott Virtual Private Servers (VPS) 11 03-06-2008 02:13 AM
Apache-WHM Parsing Error (1 change per session) marcOpolo Virtual Private Servers (VPS) 0 01-29-2008 07:26 PM
Change Port Numbers for Virtuozzo & WHM Gr8-Ideas Virtual Private Servers (VPS) 6 01-01-2008 03:48 PM
How To: Change SSH Port lnxcode Virtual Private Servers (VPS) 14 11-24-2007 07:06 PM


All times are GMT -4. The time now is 03:49 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.