ftp opens the wrong directory

Started by devrim, February 10, 2018, 07:16:35 PM

Previous topic - Next topic

devrim


Hello there
home computer
I made a new installation centos7.
but the domain and ftp do not match.
I created an ftp user.
ftp works, but directory looks like this
ftp directory http: //87.000.000/~site1/
Where is the domain directory hidden?
I deleted index.html with ftp, but it still stops.
I am waiting for your emergency help.
thank you



I am sorry for my bad english

bullten

#1
What is output of command below.

pure-pw list

devrim

[root@localhost ~]# pure-pw list
yedi7@7bel.com      /home/yedibel/public_html/./
[root@localhost ~]#

bullten

#3
Ftp is using right directory.

It works very well.
http://88.247.100.250/~yedibel/

devrim

yes home computer.
I did not choose nat. what should I do.
I do not know. my ip address is fixed.

bullten

Ftp is using right directory.

It works very well.
http://88.247.100.250/~yedibel/

7bel.com redirects to Apache directory.
http://7bel.com/webftp_simple/

May I know what is your server hostname?



devrim


bullten

in ssh type hostname and press enter.

devrim


I questioned it like this.
[root @ localhost ~] # nano / etc / sysconfig / network
  GNU nano 2.3.1 File: / etc / sysconfig / network

# Created by anaconda

no other information.
Meanwhile I use PuTTY.

bullten

#11
Goto https://88.247.100.250:2087/admin/index.php?module=change_hostname

enter
server.7bel.com

restart apache
service httpd restart

check again what is your hostname by triggering the command below.
hostname

bullten

You are behind nat and issue is being fixed by using private ip and rebuilding apache vhost.