最近さくらVPSを始めたものです
VPSのポート番号を11111(仮)に設定を変更後
VirtualHost設定とやらを設定しました
vim /etc/httpd/conf/httpd.conf
NameVirtualHost *80
vim /etc/httpd/conf.d/~.conf
<VirtualHost *:80> ServerName A.com DocumentRoot "/var/www/A/public_html" DirectoryIndex index.html index.php AddDefaultCharset UTF-8 <Directory "/var/www/A/public_html"> AllowOverride All </Directory> </VirtualHost> <VirtualHost :33333> ServerName B.com DocumentRoot "/var/www/B/public_html" DirectoryIndex index.html index.php AddDefaultCharset UTF-8 <Directory "/var/www/B/public_html"> AllowOverride All </Directory> </VirtualHost> <VirtualHost :11111> ServerName B.com DocumentRoot "/var/www/C/public_html" DirectoryIndex index.html index.php AddDefaultCharset UTF-8 <Directory "/var/www/C/public_html"> AllowOverride All </Directory> </VirtualHost>
私の解釈だとこのVirtualHost設定とゆうのは外部から接続する際のポート番号でサーバ内の特定のページに移動させられるものだと思っていたのですが、どうも検討違いらしく
http://000.00.00.00/:33333 とやっても上記記入のディレクトリ【B】index.htmlファイルには飛んでくれません
そもそも、ここでのポート番号(VirtualHost)と自身のポート番号(vim /etc/ssh/sshd_configで変更できるPort)の違いがよくわかりません・・・どなたか教えてください。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。