i have these domains : site1.com, site2.com, .... , site10.com
i config site1.com in my server (win server 2008 R2 and access via remote desktop). site1.com is OK.
We have a Linux server with a single site set up on it (site1.com), down the road we may set up additional sites.
When we send an email through php it comes from www-data@site1.com
We would like to change it to contactus@site1.com, but also make it so that when we add site2.com down the road, we can have the default email set to admin@site2.com for instance.
I tried setting it in .htaccess, but
I'm trying to write a custom redirect rule for some testing purposes on 2 domains with exactly same site. The code Im useing is:
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4$
RewriteCond %{HTTP_HOST} ^.*site1.com [NC]
RewriteRule ^(.*)$ http://www.site2.com/$1 [R=301,L]
What I want is to redirect all requests except 1.2.3.4 IP from site1 to site2.
I have virtual hosts in /var/www/site1 and /var/www/site2 folders. I want to restrict access to the files outside document root in apache virtual host, i.e. site1 could not access files of site2.
I am using nginx and i have two sites running:
site1 = /1/access.log
site2 = /2/access.log
when a user get 404 images not found on site2 nginx writes to access.log of site1 & site2 reporting the not found error, i tried everything to get separated logs without luck, i want everything that happen on site1 logged on /1/access.log and everything that happens on site2 logged on /2/access.log
an
Hi everybody. Currently I has problem with my configuration Apache: setup 2 CA for 2 domain following VirtualHost, there not match
Apache 2.2.14
OpenSSL 0.9.8e-12.el5
Problem:
_https://site1.com browser notice SSL with info CA is site1.com
_https://site2.com browser does not match SSL CA site2.com, only show CA of site1.com
I have a list of domain names that I have pulled out of an httpd.conf file. These domain names are formated as:
tld.com
cname.tld.com
Very few of these domain names share a TLD.
I am trying to output a list of just the TLD for each domain name but can't seem to figure out how to manipulate the STDOUT to show just tld.com for each string given.
For example.
This is the scenario:
I have an Apache server set as a reverse proxy to 2 Apache Tomcat servers.
I had my site (let's call it site3.com ) set up for apache which I am now trying to move to nginx.