Skip to content

Instantly share code, notes, and snippets.

@dalthonmh
Created September 15, 2025 23:15
Show Gist options
  • Select an option

  • Save dalthonmh/454f1452684328ce7cec1f849463eb95 to your computer and use it in GitHub Desktop.

Select an option

Save dalthonmh/454f1452684328ce7cec1f849463eb95 to your computer and use it in GitHub Desktop.
httpd-vhosts.conf
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
# Virtual Host para Laravel
<VirtualHost *:82>
ServerName miapp.local
ServerAlias www.miapp.local
DocumentRoot "E:/app/backend-service/public"
<Directory "E:/app/backend-service/public">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
# Laravel no requiere configuración de index.php explícita
DirectoryIndex index.php
# Reescritura de URLs amigables para Laravel
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</Directory>
# Logs
ErrorLog "logs/miapp_error.log"
CustomLog "logs/miapp_access.log" common
# Configuración PHP (opcional pero recomendable)
<IfModule mod_php.c>
php_value upload_max_filesize 32M
php_value post_max_size 32M
php_value memory_limit 256M
php_value max_execution_time 300
</IfModule>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment