收藏
回答

求助,请大家帮我看下dockerfile文件要修改哪个地方?

请大家帮我看下,目前只能访问到首页的index.php https://jk-1182803-1302386820.ap-shanghai.run.tcloudbase.com,其余的(https://jk-1182803-1302386820.ap-shanghai.run.tcloudbase.com/web/index.php?c=site&a=entry&eid=5&version_id=0)都访问不了,提示(The requested URL was not found on this server.

请教下该如何处理,非常非常感谢!

dockerfile文件内容是:

# Use the official PHP 7.3 image.

# https://hub.docker.com/_/php

FROM php:7.3-apache


# Copy local code to the container image.

COPY index.php /var/www/html/


# Use the PORT environment variable in Apache configuration files.

#RUN sed -i 's/80/${PORT}/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf


# Configure PHP for development.

# Switch to the production php.ini for production operations.

# RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

# https://hub.docker.com/_/php#configuration

RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"


CMD ["apachectl", "-DFOREGROUND"]


网站的结构:

用的是微擎。

再次感谢!

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签