Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > Suggestions > Topic : Apache Virtual Host Configuration - too complex - suggestion



Normal Mode | Print  

Apache Virtual Host Configuration - too complex - suggestion
princeofnaxos
Group: Member
Post Group: Newbie
Posts: 8
Status:
I fully agree! The supplied form to create a host is completely jabberish to me.
I use local domain names using vcap.me, and need the virtual host to be like they are on the production server. Therefor, I added "Include conf/extra/myhosts/*.conf" to httpd.conf (instead of commenting out the line you mentioned).

In folder "myhosts", I create my own virtual host files. Example:

<VirtualHost 127.0.0.1:80>

ServerName mydomain.com.vcap.me

ServerAlias *.mydomain.com.vcap.me

DocumentRoot path-to-docroot

<Directory path-to-docroot>
    Options FollowSymLinks Indexes
    AllowOverride All
    Order deny,allow
    allow from All
</Directory>

ErrorLog /var/log/apache2/mydomain.com-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/mydomain.com-access.log combined

</VirtualHost>



Quote From : keithy April 8, 2017, 6:13 pm
My latest incarnation of simple virtual hosting.

Quote

# Virtual hosts
#Commented Out the following
#Include conf/extra/httpd-vhosts.conf

#Added
VirtualDocumentRoot {$path}/www/%0
VirtualScriptAlias {$path}/www/%0/cgi-bin/

IP: --   


Threads
 keithy   Apache Virtual Host Configuration - too complex - suggestion (4 Replies, Read 563616 times)
    |--  keithy   Ok, as long...   on April 7, 2017, 10:57 pm
    |--  keithy   My latest incarnation...   on April 8, 2017, 6:13 pm
    |--  olind   I'm just trying...   on October 1, 2018, 9:07 am
    |--  princeofnaxos   I fully agree!...   on November 15, 2018, 8:21 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
10 guests, 0 users.


All times are GMT. The time now is May 9, 2025, 1:25 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.588