2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JAVA + Tomcatでlocalhostを独自ドメインに変更する(WINDOWS)

Posted at

●127.0.0.1を自分のドメインに
http://stackoverflow.com/questions/2212240/how-to-create-a-domain-like-http-username-mysite-com-in-a-j2ee-web-applicati

\windows\system32\drivers\etc\hosts
を開いて
127.0.0.1 username.mysite.com
と記述する

サーバを再起動してusername.mysite.com:8080にアクセスするとつながるはず

●ポート:8080をつけないで済むようにする
Apacheの設定

C:\Program Files\Apache Software Foundation\Apache2.2\conf
のhttpd.confを編集する


ProxyPass ajp://localhost:8009/yourdirectory/

を追加する。
Locationはフォルダの位置を、ProxyPassは表示させたいドメインのサブディレクトリを記述する

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?