You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm beginner.
I created a pure HTML project, (number 15) after command "fin p create"
I need the URL to not display the file extension - project.docksal/home.PHP, I need it to be simple - project.docksal/home
also I need to figure out which local web server the project is running on. when I type command "curl --insecure --silent --show-error --connect-timeout 1 -I http://project.docksal/ | grep Server"
displays Server: openresty/1.19.9.1
but when I enter "fin config" in the project, it displays Apache:
questions:
why displays different webservers?
how to find webserver configuration file?
What should I do to remove the file extension name from the URL?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm beginner.
I created a pure HTML project, (number 15) after command "fin p create"
I need the URL to not display the file extension - project.docksal/home.PHP, I need it to be simple - project.docksal/home
also I need to figure out which local web server the project is running on. when I type command "curl --insecure --silent --show-error --connect-timeout 1 -I http://project.docksal/ | grep Server"
displays Server: openresty/1.19.9.1
but when I enter "fin config" in the project, it displays Apache:
COMPOSE_PROJECT_NAME_SAFE: project
COMPOSE_FILE:
/home/skof/.docksal/stacks/volumes-bind.yml
/home/skof/.docksal/stacks/stack-default-nodb.yml
/var/www/project/.docksal/docksal.yml
ENV_FILE:
/var/www/project/.docksal/docksal.env
PROJECT_ROOT: /var/www/project
DOCROOT: docroot
VIRTUAL_HOST: project.docksal
VIRTUAL_HOST_ALIASES: *.project.docksal
IP: 192.168.64.100
MySQL endpoint: 192.168.64.100:49153
Public URL:
Docker Compose configuration
services:
cli:
dns:
- 192.168.64.100
- 8.8.8.8
environment:
BLACKFIRE_CLIENT_ID: null
BLACKFIRE_CLIENT_TOKEN: null
COMPOSER_ALLOW_XDEBUG: "0"
COMPOSER_DEFAULT_VERSION: null
COMPOSER_DISABLE_XDEBUG_WARN: "0"
DOCROOT: docroot
DRUSH_ALLOW_XDEBUG: "0"
DRUSH_OPTIONS_URI: project.docksal
GIT_USER_EMAIL: skof
GIT_USER_NAME: elawgord
HOST_GID: "1000"
HOST_UID: "1000"
MYSQL_DATABASE: default
MYSQL_HOST: db
MYSQL_PASSWORD: user
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
PHP_IDE_CONFIG: null
SECRET_ACQUIA_CLI_KEY: null
SECRET_ACQUIA_CLI_SECRET: null
SECRET_PLATFORMSH_CLI_TOKEN: null
SECRET_SSH_PRIVATE_KEY: null
SECRET_TERMINUS_TOKEN: null
SSH_AUTH_SOCK: /.ssh-agent/proxy-socket
VIRTUAL_HOST: project.docksal
XDEBUG_CONFIG: client_host=192.168.64.1 remote_host=192.168.64.1
XDEBUG_ENABLED: "0"
extends:
file: /home/skof/.docksal/stacks/services.yml
service: cli
hostname: cli
healthcheck:
interval: 10s
image: docksal/cli:php8.1-3.2
labels:
io.docksal.shell: bash
io.docksal.user: docker
logging:
options:
max-file: "10"
max-size: 1m
networks:
default: null
volumes:
- type: volume
source: docksal_ssh_agent
target: /.ssh-agent
read_only: true
volume: {}
- type: volume
source: cli_home
target: /home/docker
volume: {}
- type: bind
source: /tmp/.docksal/project
target: /tmp/.docksal/project
read_only: true
bind:
create_host_path: true
- type: volume
source: project_root
target: /var/www
volume:
nocopy: true
db:
dns:
- 192.168.64.100
- 8.8.8.8
- 192.168.64.100
- 8.8.8.8
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: null
MYSQL_DATABASE: default
MYSQL_INITDB_SKIP_TZINFO: null
MYSQL_ONETIME_PASSWORD: null
MYSQL_PASSWORD: user
MYSQL_RANDOM_ROOT_PASSWORD: null
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
extends:
file: /home/skof/.docksal/stacks/services.yml
service: mysql
hostname: db
healthcheck:
interval: 10s
image: docksal/db:1.1-mysql-8.0
logging:
options:
max-file: "10"
max-size: 1m
networks:
default: null
ports:
- mode: ingress
target: 3306
protocol: tcp
volumes:
- type: volume
source: db_data
target: /var/lib/mysql
volume: {}
- type: volume
source: project_root
target: /var/www
read_only: true
volume:
nocopy: true
pma:
environment:
PMA_HOST: db
PMA_PASSWORD: root
PMA_USER: root
hostname: pma
image: phpmyadmin/phpmyadmin
labels:
io.docksal.virtual-host: pma-project.docksal
networks:
default: null
web:
depends_on:
cli:
condition: service_started
dns:
- 192.168.64.100
- 8.8.8.8
environment:
APACHE_BASIC_AUTH_PASS: null
APACHE_BASIC_AUTH_USER: null
APACHE_DOCUMENTROOT: /var/www/docroot
APACHE_FCGI_HOST_PORT: cli:9000
extends:
file: /home/skof/.docksal/stacks/services.yml
service: apache
hostname: web
healthcheck:
interval: 10s
image: docksal/apache:2.4-2.5
labels:
io.docksal.cert-name: none
io.docksal.permanent: "false"
io.docksal.project-root: /var/www/project
io.docksal.virtual-host: project.docksal,.project.docksal,project.docksal.
logging:
options:
max-file: "10"
max-size: 1m
networks:
default: null
volumes:
- type: volume
source: project_root
target: /var/www
read_only: true
volume:
nocopy: true
networks:
default:
name: project_default
volumes:
cli_home:
name: project_cli_home
db_data:
name: project_db_data
docksal_ssh_agent:
name: docksal_ssh_agent
external: true
project_root:
name: project_project_root
driver: local
driver_opts:
device: /var/www/project
o: bind
type: none
questions:
why displays different webservers?
how to find webserver configuration file?
What should I do to remove the file extension name from the URL?
Beta Was this translation helpful? Give feedback.
All reactions