The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
OpenGL installation on Debian Linux royalibrahim UNIX for Advanced & Expert Users 0 12-10-2007 03:05 AM
Debian (ubuntu) file problem after ftp royalibrahim Linux 4 10-17-2007 06:36 AM
debian network installation yogesh_powar Linux 0 10-19-2005 07:50 AM
Debian aptitude - apt-get problem mikek147 UNIX for Advanced & Expert Users 1 09-15-2002 05:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-22-2006
Registered User
 

Join Date: Jul 2005
Posts: 14
problem in new debian installation

Hi All,

I have insatll one debian OS and facing the following the problems:

1. I want that when i type http://ip.address/wecome.html

it should show my welcome.html page.

but i am unabe to do rather i am abe to do by following
http://ip.address/cgi-bin/welcome.html

2. i am unable to copy any file from this server to anotehr server. I am able to ping any server from that server. I am trying to use ssh but ssh ask me teh root password of the anptehr server


Thanks & Regards
Gauri
Reply With Quote
Forum Sponsor
  #2  
Old 01-22-2006
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,469
(1): You probably need to adjust the DocumentRoot Apache configuration directive (httpd.conf / apache.conf or similar file somewhere in /etc). But before you do that, please check carefully whether the given configuration values are indeed incorrect. Or probably you have just placed your welcome.html in the wrong directory so the URL is incorrect.

(2) Use scp. You will be asked the password (most of the time) for the user account on the destination server. You will find resources on how to use scp with some searching, on google for instance.

This is one of them:
http://workshop.molecularevolution.o...#file-transfer
Reply With Quote
  #3  
Old 01-22-2006
Registered User
 

Join Date: Apr 2005
Posts: 42
Hi cbkihong,

Thanks for looking into my problem.

this what i have in my config file

DocumentRoot /var/www

and i kept my welcome.html in
/usr/lib/cgi-bin/

So could you please guide me the two way u explained me. I mean how sud i change Documentroot or the place i kept welcome.html.

SCP i will look and will get back to u.

Thansk & Regards
Gauri
Reply With Quote
  #4  
Old 01-23-2006
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,469
Then put your welcome.html in /var/www. It should now be served at the correct URL.
Reply With Quote
  #5  
Old 01-23-2006
Registered User
 

Join Date: Apr 2005
Posts: 42
thanks for the reply,,,SCP has solved my problem but first problem is still unresolved.

I try to keep my welcome.html under /var/www but still it didnt work.aprt form this i am facing one more problem

i need to type teh following to get the welcome page
http://ip_address:8080/apache2-defau...n/welcome.html

but i dont want this 8080 port to give i want the following
http://ip_address/apache2-default/cgi-bin/welcome.html


Thanks & Regards
Gauri
Reply With Quote
  #6  
Old 01-23-2006
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,469
Quote:
Originally Posted by gauri
I try to keep my welcome.html under /var/www but still it didnt work.
Please avoid just saying something doesn't work, but give more description of the output. For instance, the output is "forbidden"? "not found" etc.? Also please find out the corresponding lines in access.log and error.log when you have the file in /var/www and then use the URL http://host:port/welcome.html, and see if there is any indication.

If you have VirtualHosts, the DocumentRoot applied is per virtual host entry instead of the server default one, so you must have some understanding of your existing configuration before you can figure out the problem.

Do not put anything in cgi-bin unless you know what you are doing. cgi-bin is reserved for scripts. Therefore, it appears to be incorrect.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0