DevHub Docs
  • Welcome
  • Analytics
    • What events are tracked automatically?
    • Custom events
    • Google Analytics
  • API documentation
  • Domains
    • Registering a new domain
    • Renewing a domain
    • Pointing an existing domain
    • Pointing a subdomain of an existing domain
    • Transfer a domain
      • Transfer a domain to another registrar
    • Validating your domain
      • Validate with Google Webmaster Tools
    • Domain expiration process
  • Email accounts
    • Hosted email (rackspace)
      • Configure email clients to use POP or IMAP
  • Forms
    • Form and field options
    • Using fieldsets
    • Spam filtering
    • Configure SMTP For outbound emails
    • Using Marketo forms
  • Google Sheets
  • Hosting options
    • Embed pages
    • Wordpress plugin for path override
    • Server path override
      • Apache configuration
      • IIS configuration
      • NGINX configuration
    • CDN (content delivery network) support
  • Maps
    • Location finder
    • Map options explained
    • Google Maps API keys
  • Privacy
    • OneTrust integration
    • Cookies
  • Reverse proxy
    • Privacy and security
    • Proxy Configuration
    • Proxy Gating
    • Form lead tracking
    • Blocking and Whitelisting
      • Whitelisting Options
      • Google Ads rejections or disapprovals
      • 3rd Party Services/Widgets
      • Common Security System Restrictions or Domain Errors
  • SEO
    • Schema.org support
    • Sitemap XML
    • Enable No Index
  • Site builder
    • Getting Started
    • Images and video
    • Pages and content
      • Using page drafts
      • Adding Text
      • Adding and Managing Pages
      • Adding Images
      • Page templates and Templated pages
      • Maps
    • Redirects
    • Site Settings
    • Style Options
    • Adding a Business and location
    • Adding a site
    • Adding a user
    • Adding Custom Forms
    • Adding HTML to Sites or Pages
    • Blogs
  • SSL and security
    • SSL Troubleshooting
    • SSL certificate install options
      • Use your own purchased SSL certificate
    • Enable HTTPS for Sites and Proxies
  • Support
    • Creating a Zendesk account
    • Ticketing submission workflow
    • Builder URL and Site ID
  • Themes and custom templates
    • Getting started
    • Using macros
    • Using custom fields
    • Using URL parameters
    • Hours of operation
    • Using date and time in templates
    • Template variables
    • Site Builder Markup
      • Avoiding Site Builder CSS and HTML duplication
    • Example themes
      • Location focused page with bootstrap
      • Store locator theme example
    • Advanced Examples
      • Theme module templates
      • Static Google maps
      • Content translations
      • Page navigation
      • Override page title and meta tags
      • Adding line breaks to content
      • Get objects
      • Handling boolean values
      • Right to left languages
      • Access current URL
      • Social sharing links
      • Standard filters
      • Serializing data to JSON
      • Form events
      • Schema.org FAQ utility
  • Trace technology
    • What is Trace?
    • Configuration options
  • Data Sources
    • External Contexts
Powered by GitBook
On this page
  • Step 1: Enable mod proxy on the server
  • Step 2: Modify sites-available config file
  • Example Location directives

Was this helpful?

  1. Hosting options
  2. Server path override

Apache configuration

Example of an apache configuration to host pages under your existing server

Subdirectory Proxy Configuration for (Apache) servers

Step 1: Enable mod proxy on the server

Mod proxy is required for routing traffic to your Proxy

# enable apache module for proxy
sudo a2enmod proxy
sudo a2enmod proxy_http

# restart apache
/etc/init.d/apache2 restart

Step 2: Modify sites-available config file

Below is an example of configuring your Apache server VirtualHost entry to route traffic for some paths within your existing domain.

The two items you will need to edit:

  1. Make sure the ProxyPreserveHost On is included in the VirtualHost entry.

  2. Add the custom <Location> directives that will be provided by us. An example of these can be found below.

<VirtualHost *:80>
ServerName customerdomain.com
# continue existing VirtualHost configuration items..

ProxyPreserveHost On

# at beginning of your existing <Location> directive rules

ADD_YOUR_LOCATION_DIRECTIVES here

# continue existing configuration items..
</VirtualHost>

Example Location directives

This is just an example of the location directives that would be added to serve the path and some of the other assets (styles, images, etc) from our platform. The specific Location directives you will install will be provided by us.

<Location /your-path/>
RequestHeader set Host customerdomain.com
ProxyPass http://255.255.255.255:80/your-path/
Order allow,deny
Allow from all
</Location>
<Location /style/>
RequestHeader set Host customerdomain.com
ProxyPass http://255.255.255.255:80/style/
Order allow,deny
Allow from all
</Location>
<Location /img/>
RequestHeader set Host customerdomain.com
ProxyPass http://255.255.255.255:80/img/
Order allow,deny
Allow from all
</Location>
<Location /stat/>
RequestHeader set Host customerdomain.com
ProxyPass http://255.255.255.255:80/stat/
Order allow,deny
Allow from all
</Location>
PreviousServer path overrideNextIIS configuration

Last updated 5 years ago

Was this helpful?