Results 1 to 3 of 3

Thread: Default Virtualhost for parking domains

  1. #1
    Join Date
    Dec 2013
    Beans
    3

    Default Virtualhost for parking domains

    I have many parked domain names and I've created each a domain.conf file and ultimately point each to a /var/www/parking directory while disabling 000-defualt.conf. I've had to take this approach because when I enable 000-default.conf in apache I get erratic results. By erratic results I mean some sites enabled or not will still go to parking.

    What I would like to do is have any domain name that doesn't have an apache configuration enabled to go to a particular site exmple.com/parking.
    Last edited by fc400ef7; November 28th, 2014 at 04:13 PM.

  2. #2
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,269
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Default Virtualhost for parking domains

    You can try posting here your vhosts configs both the default one and for the parking domain so that other experts can get a clearer picture on what is happening.

  3. #3
    Join Date
    Dec 2013
    Beans
    3

    Re: Default Virtualhost for parking domains

    000-default.conf
    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/parking/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>


    example.com.conf
    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName example.com
    DocumentRoot /var/www/example.com/html
    LogLevel warn
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined


    # Mod rw
    RewriteEngine on
    #RewriteCond %{SERVER_PORT} ^80$
    #RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]

    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>


    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log


    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •