amazon-web-services - 在 Amazon AWS Cloud9 中创建子域
问题描述
我尝试在 Amazon AWS Cloud9 环境中创建子域站点。我想使用如下 URL 访问子域服务器:
subdomain.xxxxxxxxxxxxxxxx.vfs.cloud9.eu-west-1.amazonaws.com
它适用于 xxxxxxxxxxxxxxxx.vfs.cloud9.eu-west-1.amazonaws.com
但我不知道如何创建子域。这是我的配置:
/etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:8080>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
/etc/apache2/apache2.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
我尝试按照此页面上的说明进行操作:在 Amazon EC2 中创建子域, 但我的配置似乎不一样。
任何人都可以帮忙吗?
解决方案
推荐阅读
- maven - 如何使用 Maven Surefire 插件调用 JUnit5 测试运行程序/Junit 标记表达式?
- azure - 如何在整个 Azure 管理组上运行 powershell 脚本以跨越多个订阅?
- python - 如何编写脚本以更改某个程序中的设置
- python - 我刚刚尝试用键盘模块打印出按下的键
- javascript - Vue-echarts、条件渲染和下推自动机结合导致问题?
- typescript - 在 TypeScript 中是否可以定义遵循模式的动态属性?
- python - 在 Adobe Acrobat Reader DC 中找不到“选择文件”按钮
- google-analytics - Google / Firebase Analytics 获取应用程序使用高峰时间
- node.js - MongoDB 在从 Kubernetes 集群内部而不是从外部调用时忽略身份验证
- excel - 通过 VBA 更新 Excel 数据透视表范围获取太多行