logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Domain mapping solutions that don't involve wordpress?
Author
greenace92



Joined: 06 May 2015
Posts: 1
Location: USA, NY

PostPosted: Wed 06 May '15 9:30    Post subject: Domain mapping solutions that don't involve wordpress? Reply with quote

Hello,

I used to have a server which had domain mapping via wordpress... a friend of mine had this up for me and every time I added a new website to the same server/ip-address, I just modified the .htaccess for example:

RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} domain\.com
RewriteCond $1 !^domain
RewriteRule (.*) /domain/$1 [L]

Anyway, I no longer have this server and as a result, I have websites that are not being mapped correctly, many domains point to the same ip address.

I have tried to use name-based virtual hosts but it seems as if this is being ignored... I did restart Apache by sudo service apache2 restart

Any thoughts?

I'd really like to get my websites working again without buying multiple ip-addresses.

Thank you
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Thu 07 May '15 17:48    Post subject: Reply with quote

it is easier to use v(irtual)hosts. One for each domain. They all can be on a single IP. See http://httpd.apache.org/docs/2.4/vhosts/examples.html#purename

if you still have a question please ask again.
Back to top


Reply to topic   Topic: Domain mapping solutions that don't involve wordpress? View previous topic :: View next topic
Post new topic   Forum Index -> Apache