首页 > 解决方案 > 在 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 中创建子域, 但我的配置似乎不一样。

任何人都可以帮忙吗?

标签: amazon-web-servicesapache

解决方案


推荐阅读