今回初めてVPSの設定を自分で行っています。設定については、
https://dotinstall.com/lessons/basic_sakura_vps
上記ドットインストールを参考に行い、Lesson#114,#1719迄完了しています。
現状として、
vim /var/www/*******.jp/public_html/index.html
にてviコマンドで文字を入力したところ、ファイルも作成され、ドメインにも文字が入力されており、無事に進行している状態です。
ただ、ここから自身でvagrantで作成したrailsファイルを具体的にどうアップロードすればいいのかがわからずに困っております。
使用しているソフトはCyberduckとなります。
試したこと
写真添付のように、crmと言うファイルまるごとをpublic_htmlにコピーして貼り付けましたが、ドメインにアクセスしても変化なし
【Webサーバの設定について】
#httpd.conf
<VirtualHost :80>
ServerName .jp
DocumentRoot "/var/www/.jp/public_html"
DirectoryIndex index.html index.php
ErrorLog /var/log/httpd/.jp_error_log
CustomLog /var/log/httpd/.jp_access_log combined
AddDefaultCharset UTF-8
<Directory "/var/www/**.jp/public_html">
AllowOverride All
</Directory>
</VirtualHost>
#vim /etc/httpd/conf/httpd.conf
Last login: Tue Jul 17 14:11:57 on ttys000
kenta:~ okuyamakenta$ ssh -p 61203 smart@160.16.229.61
Last login: Tue Jul 17 17:31:30 2018 from kd111239183103.au-net.ne.jp
SAKURA Internet [Virtual Private Server SERVICE]
[smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
[smart@tk2-256-37807 ~]$ vim /etc/httpd/conf.d/xn--vckvb6c8fw90p7kt9m0f.jp.conf
[smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
Last login: Tue Jul 17 14:11:57 on ttys000 kenta:~ okuyamakenta$ ssh -p 61203 smart@160.16.229.61 Last login: Tue Jul 17 17:31:30 2018 from kd111239183103.au-net.ne.jp SAKURA Internet [Virtual Private Server SERVICE] [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf.d/xn--vckvb6c8fw90p7kt9m0f.jp.conf [smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
Last login: Tue Jul 17 14:11:57 on ttys000
kenta:~ okuyamakenta$ ssh -p 61203 smart@160.16.229.61
Last login: Tue Jul 17 17:31:30 2018 from kd111239183103.au-net.ne.jp
SAKURA Internet [Virtual Private Server SERVICE]
[smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
[smart@tk2-256-37807 ~]$ vim /etc/httpd/conf.d/xn--vckvb6c8fw90p7kt9m0f.jp.conf
[smart@tk2-256-37807 ~]$ vim /etc/httpd/conf/httpd.conf
This is the main Apache server configuration file. It contains the
configuration directives that give the server its instructions.
See URL:http://httpd.apache.org/docs/2.2/ for detailed information.
In particular, see
URL:http://httpd.apache.org/docs/2.2/mod/directives.html
for a discussion of each configuration directive.
Do NOT simply read the instructions in here without understanding
what they do. They're here only as hints or reminders. If you are unsure
consult the online docs. You have been warned.
The configuration directives are grouped into three basic sections:
1. Directives that control the operation of the Apache server process as a
whole (the 'global environment').
2. Directives that define the parameters of the 'main' or 'default' server,
which responds to requests that aren't handled by a virtual host.
These directives also provide default values for the settings
of all virtual hosts.
3. Settings for virtual hosts, which allow Web requests to be sent to
different IP addresses or hostnames and have them handled by the
same Apache server process.
Configuration and logfile names: If the filenames you specify for many
of the server's control files begin with "/" (or "drive:/" for Win32), the
server will use that explicit path. If the filenames do not begin
with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
with ServerRoot set to "/etc/httpd" will be interpreted by the
server as "/etc/httpd/logs/foo.log".
Section 1: Global Environment
The directives in this section affect the overall operation of Apache,
such as the number of concurrent requests it can handle or where it
can find its configuration files.
Don't give away too much information about all the subcomponents
we are running. Comment out this line if you don't mind remote sites
finding out what major optional modules you are running
ServerTokens Prod
ServerRoot: The top of the directory tree under which the server's
configuration, error, and log files are kept.
NOTE! If you intend to place this on an NFS (or otherwise network)
-- 挿入 -- 20,1 先頭
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/07/17 05:38
2018/07/17 05:51
退会済みユーザー
2018/07/17 07:03
退会済みユーザー
2018/07/17 07:03
2018/07/17 07:16
退会済みユーザー
2018/07/17 09:04
2018/07/17 09:17
退会済みユーザー
2018/07/17 09:28
2018/07/17 09:48
退会済みユーザー
2018/07/17 12:03
退会済みユーザー
2018/07/17 12:13