Ubuntu Servers :: 301 Redirect Or ServerAlias For Multiple Tld's?

Jun 19, 2011

Our company owns multiple tld's for our corporate domain (e.g. company.com, company.net, etc.). Currently, we operate the main website at [URL]. To have "company.net" et al forward/redirect to "company.com", should we use a 301 redirect or setup a ServerAlias in Apache's virtual host directive (we use name-based virtual hosting on Ubuntu Server). Are there any SEO penalties from one approach vs. the other (e.g. Google thinking you have multiple sites with the same contact + flagging it as spam)?

View 2 Replies


ADVERTISEMENT

Programming :: Redirect To Multiple Files?

Nov 12, 2010

I feel kind of embarrassed posting here, but this is technically a scripting sub-forum. Here is the problem. I have a folder with various files which include .txt files as well

How can i redirect same content to each of the .txt files in the folder?

I have tried
Code: $ echo "hello" > *.txt
-bash: !": event not found Code: also cat ~/otherdir/test.txt > *.txt
-bash: *.txt: ambiguous redirect Can anyone help me with this?Ok i solved it
Code: #! /bin/bash
for file in *.txt
do
echo "Text that needs to be written" > $file
done

View 2 Replies View Related

Ubuntu :: Redirect Curl Output To Multiple Files?

Nov 6, 2010

I am using curl as the following

Code:
curl "http://site.com/pages/{1,2,3,4,5}.html" > /home/myuser/allpages.html
i need to save each page in a separate page by the way i have tried this command
Code:
curl "http://site.com/pages/{1,2,3,4,5}.html" > /home/myuser/{1,2,3,4,5}.html
but it displays error
Code:
ambiguous redirect
is there any way to do that

View 5 Replies View Related

General :: Redirect Stdout/stderr Of Multiple Commands In One Shot?

Jun 3, 2011

I have several commands in a bash script, and in the middle of the script there are several commands whose output and error streams I want to redirect to a file. I think I could simply add '>> myfile.txt' to the end of every command, but is there a way to set it before that block of commands, then reset the streams to their original state at the end of that block?

View 1 Replies View Related

Programming :: Redirect The Output To Multiple Files Without Displaying It To The Screen?

Oct 26, 2010

To redirect standard output to multiple files:

Code:

echo Test | tee file1 file2

My problem is that the word "Test" still displays to the screen? I want same effect as:

Code:

echo Test > file1

but with multiple file redirection.

View 3 Replies View Related

Ubuntu Servers :: Redirect DNS Lookups To Other Servers?

Jan 12, 2011

Removed the thread; figured out that this does work in the zones config:

<Record you want redirected to another nameserver><tab>IN<tab>NS<tab><name server to redirect the query to>

View 1 Replies View Related

General :: File Output Redirection - Redirect Stream To Multiple Files?

Dec 7, 2010

I'm working on some scheduled task script files to keep nightly backups of some of our database information in place, and it's a bit annoying when they blow up. I know how to redirect stdout and stderr to a flat file I can view when I come in, and I know that 2>&1 maps them both to the same file (whatever was named in 1). However, I'm running into some cron-time situations where it's easier to have the two streams together, and other cron-time situations where it's easier to have them separated. I can't really tell which is going to happen; is there some way I could create both kinds of output file for my scripts, so that I've got a std_err only file and an interleaved std_out/std_err file?

Note: I've looked at the 'tee' command, but I don't think it will work for what I'm after. 'tee' appears to only work with stdout; I'm trying to work with stderr.

View 5 Replies View Related

Hardware :: Multiple Barcode Scanners - Can't Seem To Redirect Output From One To A Specific Instance Of My Program

Sep 30, 2010

I have nine barcode scanners, each of whose input I want to send to a separate instantiation of a program I wrote. Each device shows up as /dev/hidraw_ (I'm using Ubuntu 10.4). The problem is that they all act as simple keyboard input, and I can't seem to redirect the output from one to a specific instance of my program. I've tried something like cat /dev/hidraw5 > ./myapp, and that doesn't work. I've tried actually opening the device in my program using open("/dev/hidraw5"), and it returns success, but subsequent reads don't do anything, and the scanner output is just printed to the console.

View 1 Replies View Related

Ubuntu Servers :: Redirect To Another Internal Webserver?

Feb 26, 2010

I have two servers on my network One with ubuntu 9.10 server And one with openSUSE 11.2.The ubuntu server is my webserver and runs phpsysinfo and my website. On the openSuse server i have a webbased application and some files that i want people to be able to reach by using mydomain.com wich points to my ubuntu server. Is there any way to do this?

View 1 Replies View Related

Ubuntu Servers :: Redirect All Network To Squid?

Apr 28, 2010

I've been having a hard time googling and trying to get ALL network connection to be redirected to squid proxy. I couldn't find a proper configuration for ufw or iptables. The ideas are:

1. redirection rule should NOT depend on a specific network inteface, but should work with any connection type, ex.: ppp0 or eth0... 2. firewall rules can be for firehol, iptables, or ufw (the same as iptables, just tell me where to place them). Preferably ufw or gufw. 3. should not interfere on cups web interface and lighttpd server.

BTW: it's not a ubuntu server install

View 6 Replies View Related

Ubuntu Servers :: Redirect All Outgoing Emails?

May 10, 2010

Here's what I'm trying to do to complete my rocking development server.

I would like all outgoing email on my Ubuntu server to be redirected to one email address (internal or external). I don't have any mail server installed yet (I'll probably use postfix unless you have another suggestion).

The reason I would like this to work is because I'm a web developer working on multiple projects. When I start working on a new project I would like to be able to test some of the forms and features in the web application (PHP) without having emails sent to the email address configured in the application. I can always change configurations but having my development server forward the emails would save me lots of trouble.

Example:
If one of my php application sends an email to: user1@domain.com, user3@domain4.com... I would like all of them to forward to myemail@domain.com

View 3 Replies View Related

Ubuntu Servers :: How To Redirect Web Access Into Different Web Apps

Sep 30, 2010

I got two web apps in my single linux box, they are Wiki and Mantis the screenshot of the web apps directory shown below.I have created the DNS CNAME record for this server which point to the main server SV6.somehow i got error after i edit it and restart the Apache server.

View 2 Replies View Related

Ubuntu Servers :: Make It A .com - Redirect DNS To Server IP?

Oct 26, 2010

I'm hosting my own dedicated server with Ubuntu Server 10.10. I have it set up with a static local IP, and I've configured DynDNS to link up with my router and allow my server to go live to the internet. I have all the appropriate ports unlocked, with the exception of port 80. This port is blocked by my ISP (Charter) and I can't use it. Due to this, I configured my router to listen on port 81, and direct it to my server.

So, In order to view it, you need to go to the IP XXX.xxx.XXX.xxx:81 Today, I registered (www.online-self.com) in hopes of getting around my current mask (provided by DynDNS.com (omegame.selfip.com). So here is my dilemma, When I go to the host of my domain name , I want to redirect my DNS to my server IP.

I can't seem to do it though? They want a strict IP address, no port extensions. How do I get around this so that my domain name and IP address link up? I'm thinking I may be missing a step, or maybe I needed to register a domain name that simply redirects? I'm starting to get confused on what I should do next. Can I even do this?

View 6 Replies View Related

Ubuntu Servers :: Redirect Logs From Device Out Of /var/log/messages

May 4, 2010

I have configured my Cisco firewall to redirect all its logs to my Ubuntu 9.1 server (no UI.)

Now, my /var/log/messages is getting all the firewall logs + all other logs.

I'm wondering if there is a way to redirect the logs from my Cisco Firewall (coming from UDP port 514) to another file.

View 2 Replies View Related

Ubuntu Servers :: .htaccess For Redirect After Site Move?

Aug 10, 2010

How can I redirect my URL after a site move.I have phpBB forum software installed on a 10.04 server, and I recently moved the forums from mysite.com/forums/ to mysite.com/.

So, a thread that looked like
mysite.com/forums/viewtopic=...
now looks like

[code]...

View 2 Replies View Related

Ubuntu Servers :: Bind9 Fails To Redirect Only Windows?

Aug 28, 2010

I operate a home network with Ubuntu Server 10.04 with services including DHCP3, Bind9, Apache, and so on. Since I host several dozen websites from home, I have to run Bind DNS. All Ubuntu boxes on my network operate fine. However, all Windows boxes on the network seem to forget to look internally for DNS after a couple of page loads on my internal sites. The network settings still indicate that my internal domain name server is the first lookup and everything seems normal.

View 2 Replies View Related

Ubuntu Servers :: Apache Redirect For Connection Coming Via External IP?

May 14, 2010

On my Server I have an application running. I have the External IP address of the Server registered in DNS so users requiring access from outside the office can enter a full URL rather then an IP address.

How to I change my Apache config so that all traffic that comes into the server from the URL is put over https?

View 6 Replies View Related

Ubuntu Servers :: Apache2 Virtual Host Appears To Redirect Url ?

Jun 4, 2010

My goal is a testing server with an apache virtual host for each site that I'm working on, with fairly painless setup for each new job.For example, I want http://site-a.mydomain to server this document root /home/client-a/site-a/public_html (or something to that effect)Ideally, DNS will use a wildcard to point http://anything-i-type.mydomain to the testing server, and apache will have a dynamic virtual host definition that will do a little magic so that I won't have to mess with DNS records or add a new virtual host each time I add a new site for a client. I'll worry about that when I get there, just put that out there in case anyone has any tips! for now I just have one little problem that's hurting my mood-

It looks like I've got my DNS server working just fine, so yay there- BUT my first attempt at adding a virtual host isn't working quite how I expected- meaning that site-a.mydomain now serves up the correct document root, but when you put http://site-a.mydomain into the browser's address bar, the address bar is then updated to http://10.0.1.100/site-a/public_html - bogus!! I must be missing an option like "FunnyBusiness Off" -

root@ubuntuvm:/etc/apache2/sites-available# vim client-a.mydomain
<VirtualHost *:80>
UseCanonicalName Off
ServerName site-a.mydomain
DocumentRoot /home/client-a/site-a/public_html
</VirtualHost>2

View 2 Replies View Related

Ubuntu Servers :: Redirect Messages From Kernel Ringbuffer To A Logfile?

Aug 2, 2010

Is there a way I can redirect messages from kernel ringbuffer to a logfile, e.g. with rsyslogd? With redirect I mean that the messages do no longer appear in dmesg, but only in the logfile.
In my case that should be iptables log messages.

View 3 Replies View Related

General :: Multiple Servers Or One Server With Multiple VMWare?

Feb 7, 2011

I'm looking at setting up a couple automated systems: Here are a few examples:

* Internal accounting system to download and process emails
* Public web server to visit

I could put each system on its own separate box -- for example, it's generally good practice to separate anything that external users have access to (such as a webserver) from internal processes such as accounting. Now, rather than dishing out the money for two separate servers, could I get away with just installing new instances of VMWare on the same box for each system?

To give you an idea, these are not large scale computationally sensitive systems. The accounting one is simply downloading and tallying emails, and the latter is just a webserver with maybe 5 hits per day on a good day. I could definitely pick up a new box for say $50, but I wanted to know the general practice of using VMWare on the same box versus two separate boxes.

View 2 Replies View Related

Server :: Redirect Different Domains To Different Internal Servers

Apr 23, 2010

I have several web servers running apache on my LAN. Each internal server hosts a number of domains.I would like to make these available to the internet and make sure they all get to use port 80 and 443.My idea was to put Apache on the firewall and have all http(s) traffic from the Internet to my firewall be redirected by Apache to the different internal apache servers. This, in theory, would allow me to keep the standard http(s) port.

Can this be done? I was thinking of mod_rewrite and mod_redirect but in all honesty, I'm a little at a loss on where to start.Can someone point me to relevant documentation or give me the basic idea on how to start?

View 2 Replies View Related

Fedora Servers :: Apache External IP To Internal IP Redirect

Feb 18, 2009

I would like to redirect a external IP to a internal IP, all done with Apache. Is that possible.

View 4 Replies View Related

Fedora Servers :: Set Up A Local Domain To Redirect To A File In OS?

Mar 15, 2011

I'm trying to set up a framework where people connected to same wifi connection can enter a local site for developing purposes.I want them to be thrown to a local copy (development copy of the site) when they type in www.development.loc in the browser.I don't want to connect the world, only people connected to my wifi.Anyone willing to help by stating what I need to edit to :1. Allow me to access local copy of site that's on computer (located : /var/www/developmentsitename/) using www.development.loc in browser./and2a. What do I edit to create the server accessible by other computers connected to same wifi connection. 2b. If another computer can connect to this site now, can we create a virtual desktop setting in which workers can work as if they have their own partition on the server to work on and upload work onto the development server.

View 2 Replies View Related

Software :: Apache 2 Redirect - Create Virtual Servers?

Feb 25, 2009

I believe I finally have a very secure config for apache2 that will only use SSL or port443.

Problem is how do I redirect all my users who dont type in https:// to the proper SSL port 443?

Do I have to create Virtual Servers? If so how?

Or is there a Redirect command?

Code:

View 4 Replies View Related

Fedora Servers :: Apache Virtual Host Redirect To Default?

Jul 1, 2009

I've created a virtual host and when I try to access it it displays the root of the Default Server. Running Fedora 11. This works fine in our Fedora 8, same configuration.

192.168.0.200
Default server is set to
Listen 80
virtual server

[Code]....

View 2 Replies View Related

Ubuntu Servers :: Windows DHCP Server - Multiple Boot Servers ?

Apr 1, 2011

I'm curious if anybody can shed some light for me in this department. We're in a large environment with a Windows DHCP Server. We have been tinkering with LTSP on Edubuntu as thin and fat clients. It works great, but right now we just have 1 server handling the lab, which works fine unless we want to expand, which may be very possible.

These are the instructions I received:
Login to your windows server and load the DHCP configuration screen
Create a DHCP reservation for the MAC address you obtained
Add the configuration options below to enable the machine to boot from the LTSP server
017 Root Path: /opt/ltsp/i386
066 Boot Server Host Name: <ip address>
067 Bootfile Name: ltsp/arch/pxelinux.0 # Specify CPU architecture in place of 'arch', for instance 'i386'

From: [url]

I'm curious, what if I want to have multiple Ubuntu servers on the network that I want to have bootable? For example, let's say I have 3 labs, and 3 servers. Server A to Lab A, Server B to Lab B, and Server C to Lab C. I want all C's computers to boot to C, and B to B, A to A, etc.

1 - How would I add multiple entries on the Windows DHCP Server to allow all 3 (A B C) servers to boot?

2 - How would I be able to isolate the clients so ONLY Lab A clients boot to Server A, etc?

View 7 Replies View Related

Ubuntu Servers :: Backup Multiple Servers ?

Jan 19, 2010

I currently have a group of 3 servers connected to a local network. One is a web server, one is a mysql server, the other used for a specific function on my site (calculation of soccer matches!).

Anyway, I have been working on the site a lot lately but it is tedious connecting my USB hard drive to each computer and copying the files. This means I am not backing up as often as I should...

I have a laptop connected to this same network that I use for development so I can SSH into to the computers, is there any software for ubuntu that can take backups of files that I choose on multiple computers? I know I could rsync but is there something with more or an GUI?

Then I can just every 2 days move the most recent backup from my laptop to the USB drive. Then I will have the backup stored in 2 places if things go kaboom somewhere.

View 9 Replies View Related

Ubuntu Servers :: Multiple FTP Servers On One Machine?

May 20, 2010

I'm running Ubuntu Server 10.04 and have a secure (SSL/TLS) FTP server on it. However, I'd like to use this FTP server to update programs I made using Microsoft Visual Studio. Unfortunately, in Microsoft's infinite wisdom, secure FTP servers cannot be used. Rather than use an insecure FTP server, I want to set up my secure FTP server to be able to access whatever I need to on the machine, and then add an insecure FTP server that only has access to the directory where I put my update files. I am currently using vsftpd as my FTP server. Is there any way that I can set up two FTP servers on this single machine?

View 6 Replies View Related

Programming :: Bash Ambiguous Redirect - Redirect One Command Output Which Will Be Treat As A Content Of File For Another Command?

Mar 9, 2011

I am trying to grep multiple numbers from file, grep does have the -f option for that.

Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with

Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?

View 2 Replies View Related

Ubuntu Servers :: Multiple Php.ini Files

Jul 19, 2010

I would like to have multiple php.ini files for multiple sites.

I've a production site (word wide available) and a test site (available to some selected IP-addresses). I would like to set some different PHP settings for the test site, for example, 'error_reporting' and 'display_errors'.

Is this possible? I'm not looking for some CGI hack, unless it wouldn't work any other way.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved