About localhost mutliple subfolder

1. The problem I’m having:

mutliple site on localhost,i use symfony. i want:
http://192.168.100.100/a to vist a project
http://192.168.100.100/b to vist b project

when i vist http://192.168.100.100/a i got error:
No route found for “GET http://192.168.100.100/a

2. Error messages and/or full log output:

none

3. Caddy version:

2.x

4. How I installed and ran Caddy:

docker

  caddy:
    image: caddy
    container_name: caddy
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp"
    volumes:
      - ./caddy/Caddyfile:/etc/caddy/Caddyfile
      - ../:/var/www
      - ./caddy/data:/data
      - ./caddy/config:/config

  php:
    build:
      context: .
      dockerfile: ./php/Dockerfile
    container_name: php
    extra_hosts:
      - host.docker.internal:host-gateway
    privileged: true
    ports:
      - "9000:9000"
    volumes:
      - ../:/var/www

d. My complete Caddy config:

http://192.168.100.100/a {
	root /a* /var/www/anti/public
	# Enable the static file server.
	file_server

	# Another common task is to set up a reverse proxy:
	#reverse_proxy localhost:8002

	# Or serve a PHP site through php-fpm:
	php_fastcgi php:9000
}

Please fill out the help topic template, as per the forum rules.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.