Ubuntu Servers :: Apache Multiple Ports Config?
Mar 28, 2010
I have several sites running on a local server. Currently, they're all running on port 80. I need one particular site (and ONLY that site) to also accept connections on port 81.
If I browse to the server IP x.x.x.x:80 directly, Apache's behaviour of showing the default site should work as usual. But, if I browse to IP x.x.x.x:81, it should show a different site (the one that should be accepting both :80 and :81). This part is very important.
I was hoping something like the following would work, but it didn't Currently x.x.x.x:81 still shows what I've called myport80defaultsite.com below.
Code:
Listen 80
Listen 81
<VirtualHost *:80>
ServerName myport80defaultsite.com
[Code].....
View 1 Replies
ADVERTISEMENT
Mar 23, 2010
I've installed mailman on 9.10, using apt-get, have apache2 setup already. However I'm getting 403 forbidden issues when trying to access [URL] I may have mucked something up as initially i jumped straight in and created a virtualhost and played around with the URL redirects. but as far as I can see, it's back to its default and it's still not working... When I try to access the page, in my apache error.log, i get this:
Quote:
[Wed Mar 24 02:36:37 2010] [error] [client 192.168.1.1] attempt to invoke directory as script: /usr/lib/cgi-bin/mailman/
I've tried check_perms, it does give this error:
Quote:
root@babel:/etc/apache2# check_perms
/var/lib/mailman/templates bad group (has: root, expected list)
/var/lib/mailman/bin bad group (has: root, expected list)
/var/lib/mailman/cgi-bin bad group (has: root, expected list)
[code]....
View 1 Replies
View Related
Jan 17, 2011
Looking for a test tool where I can fire up any number of ports (TCP and / or UDP) to listen on.
I am currently getting my using nc but its only 1 port at a time (i know I can open up multiple sessions but thats cumbersome), it can't do UDP, and it closes at the end of the session.
A friend has suggested socat but it looks pretty much the same except it can do UDP, but also cumbersome, I have to manually output to a different file per port, etc.
Basically its so I can quickly test firewall and NAT rules.
View 7 Replies
View Related
Feb 25, 2011
I want to modify apache IPv4 configuration to IPv6 configOn both windows and ubuntu.
View 1 Replies
View Related
Jul 21, 2010
I read that since httpd 2.2.12 (I run 2.2.15), it is now possible to run multiple SSL certs on multiple vhosts on one ip. I didn't find a procedure to do it. Do you know how to?
View 1 Replies
View Related
Jul 5, 2010
how is it possible to serve multiple sites hosted in my computer with apache through dyndns.I am using ubuntu 10.04 and i had setup a dyndns domain as of mydomain.homelinux.org/127.0.1.1 medic. Now when i go to mydomain. homelinux.org outside of my lan i see the default site of apache.
View 3 Replies
View Related
Dec 30, 2010
I have a server that host's several sites, recently I had to create a new server because the old one isn't good enough for me. Ive installed apache2 on the new server and moved all the files from one server to the other. I'm making tests in my local lan so I've edited my computer's hosts file to point to the name of each site to the local ip of the new server:
192.168.1.85 www.mypage.com
192.168.1.85 svn.mypage.com
192.168.1.85 trac.mypage.com
I have all the site definition files in /etc/apache2/sites-available I also have the used a2ensite to enable each page.
Whenever o use my browser to try and access each of the sites I always get the svn.mypage.com page and none of the others.
here is some debug info:
Code:
sudo apache2ctl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
[Code]....
View 1 Replies
View Related
Feb 7, 2011
how one professionaly would solve the security and administration for the multiple webadmins, but firstly I give some general information.I spent 2 days searching and there are alot of good guides but I dont see my specific questions answered, not so I can understand them atleast.I have Ubuntu 10.10 64bit server edition installed.I am educating myself and am new to linux but use vmware and have installed Gentoo multiple times and a copy of Ubuntu server. This server is going to be setup on the 64-bit 10.10 Ubuntu virtual machine.
View 3 Replies
View Related
Feb 20, 2010
I've installed webdav on my server and I can access it fine through cadaver. However, when I try to access it via nautilus, I get Forbidden. It is NOT secured (SSL). When I try to access it via firefox, I get an error since I DO NOT have "Options Indexes" in my apache config file. If I add this option in, then I can browse the root direction and webdav folder via firefox, but still not from nautilus. what other information you need. I've googled and searched the forums for awhile, but not "solutions" I found have worked for me. I want the webdav folder to just be a single folder within the direction, so this is how I have my config file setup:
[Code]....
As a side-note...when I included "Option Indexes", it allowed me to view the passwd.dav file from firefox!That doesn't seem very good...
View 4 Replies
View Related
Jul 10, 2011
I'm running Ubuntu Server 11.04 with OpenSSH, trying to create an ssh tunnel (for web traffic) to it from my (also Ubuntu) laptop. This is the command I'm using to create the tunnel:
Code: ssh -ND localhost:8080 george@192.168.1.20 I had it all working on a virtual machine.. which was deleted What settings/lines do I need to change/add from the default OpenSSH config files to get tunnelling to work? I've Googled and AllowTcpForwarding is set to yes, as is X11Forwarding.. but it still doesn't work. Chrome can connect to the server, but says the connection was closed before any data was sent.
View 3 Replies
View Related
May 17, 2011
How to separate sftp and ssh and run on different ports.
i.e.
a) sftp on port x
b) ssh on port 22
I searched from the web and there are no detailed instructions. They suggested something like separating sshd_config into two files (file A and file B) and run two instances. Each instance points to its configuration file.
However, they didnt write down the detailed procedure of:
a) how to modify file A and file B (i.e. which line should insert specific commands)?
b) how to run two instances?
c) how to point each instance to its config file.
I am using Linux CentOS and the latest open-ssh.
View 4 Replies
View Related
Dec 23, 2010
I am using a C application which connects to various other C applications at different ports through TCP,sends requests to all of them and then waits for the responses. The problem is that when the requests are fewer it gives a good response but with the increase in load the port at which the master application is listening get hogs and is unable to receive the responses.Can you please suggest the best way to tackle this issue? Is it possible for the master application to listen at multiple ports so that the load gets distributed and how?
View 7 Replies
View Related
Sep 5, 2010
I am running apache2 and tornado web servers on the same server with one ip address.
The apache2 listens on port 80. Tornado listens on port 8888. I want to redirect requests from a specific ip port 80 to port 8888. I don't have the ability to change the port request on the device. It wants is looking for a web server on port 80.
Any other web server request should go to the apache.
I tried adding the following to /etc/ufw/before.rules
When I run iptables -L it doesn't appear. I have disabled and enabled ufw with no help.
View 3 Replies
View Related
May 26, 2011
jack uses 2 ports for input and 2 for output. I have a SoundBlaster 5.1vx card, and I would like to use a "line-out" plug for monitoring. But when I try to get jack to reserve four extra outputs by using the switch "-o 4", it gives me an error.
View 2 Replies
View Related
Jul 16, 2010
I'm not all fluent in apache, so bare with me. I inherited this environment months ago, and I am still learning the strangeness of things in it.Here are two of my config files on all my web servers:
/etc/apache2/mods-enabled/cache.conf:
<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot /var/cache/apache2/mod_disk_cache/
[code]....
Correct me if I'm wrong, but don't these files configure the same settings, and don't they conflict? And if the conflict, which file gets the final say? And if one file overrides the other, can I just remove the one that loses?
View 3 Replies
View Related
Apr 18, 2011
I am just configuring my PC for learning php. If I install phpMyAdmin from rpm, it works however if I download it manually and put in /home/user/public_html/phpMyAdmin and then browse [URL], I just see a blank page. What is the reason?
View 7 Replies
View Related
Mar 31, 2011
Create a config file for Apache and this what I need to put and modify to meets my settings
NameVirtualHost *:9091
<VirtualHost *:9091>
DocumentRoot /var/www/trac/my_project
ServerName my_server_name
[Code].....
Do I simply add this within the /etc/httpd/conf/httpd.conf
if not how would I go about doing this
View 3 Replies
View Related
Mar 17, 2011
I am trying to add a second vhost to my once working apache config. Now I have things really bollixed up and cannot access anything. I am getting a error 400. The access log shows this:
192.168.0.2 - - [17/Mar/2011:11:24:41 -0400] "GET /" 400 951
192.168.0.2 - - [17/Mar/2011:11:24:41 -0400] "GET /" 400 951 "-" "-"
I have a default (I think) httpd.conf file and put all my config stuff in files in vhosts.d. I have 3 files there:
[Code]...
View 14 Replies
View Related
Apr 9, 2011
This all started when my Screenlets stopped working. Then I noticed that my update notification stopped too. So, to the command line I went to do and update hoping it was a recent update that needed to be fixed.
Code:
sudo apt-get update && sudo apt-get upgrade
It appears that multiple python packages are trashed some how? Currently doing sudo apt-get -f install I get:
HTML Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
python-configglue python-ubuntuone-client libimobiledevice0 python-ubuntuone-storageprotocol python-twisted-web python-pyinotify libcouchdb-glib-1.0-2 .....
View 1 Replies
View Related
Jun 21, 2010
I have a network with multiple subnets from 10.12.056.0 to 10.12.060.0 using net-mask 255.255.248.0 and one gateway 10.12.056.1. I want to setup a dhcp server and wonder how should I config it? All the hosts in the network using the same net-mask and gateway.
View 4 Replies
View Related
Jun 15, 2011
I recentled upgraded all the packages on my server and now I have an issue where I can't get any thing to install or uninstall do to errors, This is what I get:
praetorian@praetorian:~$ ps ax | grep dpkg
7330 pts/1 Ss+ 0:00 /usr/bin/dpkg --status-fd 21 --configure bind9 cups cups-bsd
7331 pts/1 S+ 0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/bind9.postinst configure 1:9.7.3.dfsg-1ubuntu2
[code]....
View 9 Replies
View Related
Jun 10, 2011
How can you do it with individual ifcfg-* files?
I've tried adding them like this:
Filename: ifcfg-vlan1:0
BOOTPROTO='static'
ETHERDEVICE='vlan1'
STARTMODE='manual'
USERCONTROL='no'
IPADDR='192.168.1.2/24'
but it fails on ifup, thinking it might be the filename (the vlan tagging being picked up from the name) I tried renaming it but still no go.
I can add IP's via ifconfig, eg ifconfig vlan1:0 192.168.1.2 netmask 255.255.255.0 up
and I'm pretty sure I could add multiples to the ifcfg-vlan1 file but how do I add them from individual config files?
View 9 Replies
View Related
Jan 6, 2011
my task is to store the data to a file at server sent via HTTP POST, i written suitable cgi script in C, but the PROBLEM is that i can't complete the task, I guess i require server permission to do so, how to configure server or how to get access right from server to store data to a file.
View 3 Replies
View Related
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
May 27, 2011
First of all, ntfs-config does not appear in the menu in openSUSE 11.4 Gnome 2.32. When I try to start it using the run command(Alt + F2) it gives the following error in a small window: Insufficient Rights. You need administrative rights to start this application. I then try to run it as root (su -l or su) and it gives the following error:
[code]...
All these packages and others are already installed in my computer.
View 9 Replies
View Related
Jun 20, 2010
I have VPS installed with Debian, NGINX, mysql, php and wordpress. By default the template gives 1 wordpress install in the /var/www/ directory. However, now I want to add more domains with wordpress to that VPS. I created a directory called /home/public_html/domain1.com and linked it to the /var/www/ directory. then I created another directory called /home/public_html/domain2.com and uploaded wordpress there. What I did next was edit my /etc/nginx/nginx.conf file with the following code:
Code:
user www-data www-data;
worker_processes 4;
events {
[code].....
View 1 Replies
View Related
Jul 29, 2010
I want to restrict the access to my local web server by IP address. Im in a LAN (192.168.200.xx) so i have this:
[code]....
But when i try to connect from 192.168.200.4 it says i don't have permission to access
View 1 Replies
View Related
Jul 22, 2010
I'm trying to run a web server on ubuntu lucid, and I have a problem what is not directly linux related, but a problem with opening ports. I hope this question is welcome here as well. When I open port 80 everything works well. My server is accessible from outside. But strangely the day after the port is closed again. Right now I have do reset my router every day to keep that port open and well, that's not much of a solution. I wonder how it is possible. I configure everything on my router, I save the settings and it works. How come it automatically resets my configurations over time?
View 9 Replies
View Related
Dec 15, 2010
"Ubuntu Server has no open ports by default" - [URL]. Does this mean right after a 10.04 Server Edition installation, if a user wants to start a web service e.g. a Java process to listen on say port 8080, he would have to configure the firewall first?
View 1 Replies
View Related
May 1, 2011
I just finished setting up a Natty box to act as my home router / home web server. I installed beta2 a few days before the final was out and updated all of the packages (also tried a dist-upgrade just in case ).
I performed the following setup:
- set up the webserver and sshd
- set up dhcp server and adressing
- set up rc.local to run rc.firewall with my filtering rules
- set the router live (rebooting it)
And that was basically it. Everything worked fine, except when I tried to open any of the sites that are hosted on the webserver from the outside world. It turned out that all of the ports on the external interface were blocked.
I decided to stop my firewall rules (flushing all rules) and then scan my box from the outside - still, all ports seemed to be filtered. I then decided to reboot the machine, disabling all mention of the rc.firewall script, but the ports were still filtered!
I then disabled apparmor and made sure ufw is disabled, but the ports are still filtered for the outside world. For the internal network they are not filtered.
Is there some other mechanism besides iptables rules that filteres packets?
View 2 Replies
View Related