Author Topic: How to upload webpage contend???  (Read 5388 times)

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #15 on: November 22, 2009, 02:55:18 am »
I need to type in www.mydomain.com/CSIWISP.html to view my contend I ll go Change the contend to CSIWISP.htm and see if I can access the contend by just typing in the www.mydomain.com

Well That did not work either any ideas??

It just keeps poping it works when I go to www.mydomain.com
« Last Edit: November 22, 2009, 03:06:48 am by HANNES1985 »
Only people that wants to no more will ask!!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: How to upload webpage contend???
« Reply #16 on: November 22, 2009, 04:13:18 am »
Try to name the page as index.html instead of CSIWISP.html
Zentyal Server Lead Developer

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #17 on: November 22, 2009, 08:29:57 am »
Still does not work not index.html or index.htm any ideas??
Only people that wants to no more will ask!!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: How to upload webpage contend???
« Reply #18 on: November 22, 2009, 02:43:17 pm »
So you are still getting the "It works" page after replacing the old index.html with a copy of your page or a link to it?

If you execute ln -sf CSIWISP.html index.html in /var/www it should work.
Zentyal Server Lead Developer

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #19 on: November 22, 2009, 05:59:33 pm »
The www file was empty seems that there is anouther file or conf I need to change in order to view my webpage by just typing in www.mydomain.com!!

I am looking for any conf that has to do with redirections if /var/www is empty !!

Quote
So you are still getting the "It works" page after replacing the old index.html with a copy of your page or a link to it?

If you execute ln -sf CSIWISP.html index.html in /var/www it should work.

Could you give me a bit more detail on how to do this Im new to the putty thing and Ive checked could not find any directory with -sf

Please I`d really like to get this right coz then Ive configured all the packages I need in ebox!!

next then is getting a 4tb external hard drive and redirect www-data to it so I can change the contend of the website without using putty coz its a looooong process!!

One Q though is it possible to change the page you get from the server when you have a timeout ??
Only people that wants to no more will ask!!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: How to upload webpage contend???
« Reply #20 on: November 22, 2009, 06:47:51 pm »
-sf are arguments of the ln command that it's used to make links to files. You have to execute that command inside the /var/www directory (use cd command for that).
Zentyal Server Lead Developer

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #21 on: November 22, 2009, 07:06:13 pm »
Thank you just so I dont bugger anything up the location of my website is /var/www/index.htm

how do you prepose I go about linking the file to www.mydomain.com??
Only people that wants to no more will ask!!

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: How to upload webpage contend???
« Reply #22 on: November 23, 2009, 12:47:36 am »
Run:
Code: [Select]
cd /var/www
sudo ln -sf CSIWISP.html index.html

Cheers!

dragonslayr

  • Zen Warrior
  • ***
  • Posts: 157
  • Karma: +1/-0
    • View Profile
Re: How to upload webpage contend???
« Reply #23 on: November 23, 2009, 06:33:50 am »
Note: There is another way to put the files where you want them, though some do not like to give ssh root access..  It's called winscp

If you do wish to do it with winscp,
Make a password for root
passwd root
Note: Make it a strong password.

Then download winscp and just copy the files with a gui right to where you want them..
You can also disable password logon and use a key for authorization. See here. http://winscp.net/eng/docs/faq_su

Course, I do it with a rsync nightly upload so I don't even have to mess with it. Just edit the files and they will be uploaded later automagically.. (one of the benefits to running Linux on the desktop as well)  But there is rsync for windows..   :)
« Last Edit: November 23, 2009, 06:36:20 am by dragonslayr »

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #24 on: November 23, 2009, 07:28:53 pm »
Quote
cd /var/www
sudo ln -sf CSIWISP.html index.html

This code worked perfectly Thank you very much !!!
Only people that wants to no more will ask!!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #25 on: December 12, 2009, 02:43:01 pm »
Hi to all!

after a update to my website via website maker the new upload`s links does not work .
It keeps on referring to the old version of the website how would I go about fixing this problem?
Only people that wants to no more will ask!!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: [Solved]How to upload webpage contend???
« Reply #26 on: January 04, 2010, 04:01:38 pm »
I just needed to upload everything again and run the little code posted by isaac
Only people that wants to no more will ask!!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #27 on: March 29, 2010, 10:39:37 pm »
All is running well can any one tell me if its possible to link all the samba user directories to separate files in the /var/www directory?

Ive added a user USER at users and groups and gave it 100mb disk space via samba
then ticked the enable per user public html and created a virtual host USER at webserver what I want to do now is being able to just paste everything into the network drive created via the samba account and It should then show when I access www.mydomain/USER
Only people that wants to no more will ask!!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #28 on: June 01, 2010, 08:33:11 pm »
Okay all is running well

One question!

Is there a way I can keep the website contends in my samba directory root/home/admin,
and add a script file to my /var/www directory wich then redirect the clients to root/home/admin/index.html for web browsing

This way I can setup a network drive in windows and use my web page editing program to change my site as I want to without having to use putty or winCSP?

I can then use the same method to give my clients the same service via they're samba directory
Only people that wants to no more will ask!!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How to upload webpage contend???
« Reply #29 on: June 01, 2010, 08:40:10 pm »
Quote
cd /var/www
sudo ln -sf CSIWISP.html index.html

Maybe I can use the ln -sf function like
dir:/var/www
sudo ln -sf CSIWISP.html /home/admin/CSIWISP.html

and for user (joe)
dir:/var/www/joe
sudo ln -sf index.html /home/joe/index.html

Don't bite my head off if this is wrong im still learning here!! ;D
Only people that wants to no more will ask!!