Ubuntu Servers :: Apache2 Vhost Stopped Working After Changing Routers Internal Ip

Apr 8, 2011

I run ubuntu 10.10 with apache2 and have 2 virtual hosts set up

here is an example of one of the virtual hosts

<VirtualHost *:80>
ServerName blah.endofinternet.org
ServerAlias blah.endofinternet.org
ServerAdmin davidboychuck@gmail.com
DocumentRoot /var/www/blah

[Code]....

Everything was working perfectly until i changed the internal ip of my router from 192.168.1 to 192.168.192 and now virtual hosting no longer works. As far as I can tell everything is setup correctly. I made no changes to the configuration files. Vhosts just literally stopped working. I've tried clearing dns cache not sure what to do at this point. I have tried to a2dissite and then a2ensite and reload the configurations but it literally just seems like apache is not looking for the vhosts in /etc/apache2/sites-enabled even though my apache2.conf still includes them

#Include the virtual host configurations:
Include sites-enabled/
From the apache error log:
[Sun Apr 03 16:41:50 2011] [error] [client 66.249.72.208] script '/var/www/index.php' not found or unable to stat

[Code].....

It looks like it's just not trying to use the vhost document root because when i go to blah.endofinternet.org it just takes me to the default site.

View 2 Replies


ADVERTISEMENT

Software :: Apache2 Multiple SSL Vhost In Different Vhost Files, Does Not Work

Sep 24, 2010

I have two sites (actually more) configured in apache2. All sites have their own vhost file, which I enable or disable with a2enmod or a2dismod.

This works fine.

I have configured some SSL sites inside the vhost files, where I have created two different certificates. One for each site.

BUT, if I enable example2.com, it will always load the certificate from webmail.example1.com when i go to the ssl site webmail.example2.com, nomather what (because it comes first in the alphabet maybe) ?.

If I then uncomment the SSL site for example1.com if will work fine with webmail.example2.com, but of course then the site for webmail.example1.com is not working since it is uncommented.

So for some reason, it "falls back" to this site webmail.example1.com everytime, which I have absolutely no idea why it does this. All the other vhost running on port 80 configurations, works fine, but just not the SSL (port 443 ones).

Example1.com:

Code:
<VirtualHost *:80>
DocumentRoot /home/example1com/wwwroot/
ServerName www.example1.com:80
ServerAlias example1.com:80

[Code].....

View 2 Replies View Related

Ubuntu Servers :: HTAccess Stopped Working For 301 Apache2

Apr 29, 2010

I am not sure what happened, but my .htaccess file is no longer working for my 301 redirects. I did have a hard time getting it working a few weeks back (when I first set it up), unfortunately I did not document it well. Main question is for multiple sites getting redirected, do I want the additional sites listed as aliases? My original setup virtual host config listed seven additional hostnames as aliases.

I later had difficulty with google listing these secondary domains within search result and hurting my page rank. So I setup 301 redirects, and from memory, I had to leave the alias names for the .htacces 301 redirect to work. Now it won't work either way. Can anyone tell me if the aliases need to be in place? Do I need to setup individual vhost files and add an .htacces 301 for each? What is the preferred way to do this? I tried reloading apache2 but it did not help.

Permissions for .htacces:
Code:
-rwxr-xr-x 1 eric www-data 866 2010-04-14 12:06 .htaccess
Attaced is my .htaccess. It resides in the site root directory. Also attached is the virtual host config file.
httpd.conf

Code:
NameVirtualHost *
NameVirtualHost *:443
AddHandler cgi-script .pl
RewriteEngine On

I'm still not sure after hours of reading the various how-to's, what should the file permissions be for the .htaccess. I have not performed any updates during the period it was working till now.

View 2 Replies View Related

Ubuntu Servers :: Apache2 Just Stopped Working - 403 Error

May 27, 2011

I have just booted up to do some local work on my website and apache 2 has start throwing 403 error's at me? phpmyadmin and other alias's I have setup work but the main root just 403's on me?? It has been working away flawlessly for months now. No system upgrade has recently updated Apache and I can see no errors in my set up files!

My default setup file:
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /home/gavin/wwwsite
<Directory "/home/gavin/wwwsite">
Options +Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory> .....

View 2 Replies View Related

Ubuntu Servers :: Changing Document Root On Apache2?

Mar 14, 2010

how can I change the document root from /var/www to another folder? I cannot find anything in the apache2.conf or httpd.conf.

View 2 Replies View Related

Software :: Apache2 Losing Vhost Config After Few Minutes?

Mar 4, 2011

I have some vhosts set up, and they work once apache is restarted. But, as a few minutes go by, all the vhosts end up going to the default apache "It Works!" page.

I don't think it's the vhost config since it does work initially (and I've triple checked it all by now).

I am running htcache (or whatever the disk caching module is called).

View 3 Replies View Related

Ubuntu :: Internal Speakers Stopped Working - How To Make It Work

Apr 26, 2011

I've been running Ubuntu on my Dell Studio 1749 laptop since I got it, around 8 months ago.I recently upgraded to Maverick 10.10 64-bit, reformatting and partitioning my hard drive in the process (got rid of windows since I never use it) and it was working perfectly until last Wednesday (22.4.2011). On Wednesday I unplugged my usb headset while in a Skype call to switch to the internal speakers and my computer freaked out, black-screened, and froze. When I rebooted, the internal speakers had stopped working completely, even though the sound works perfectly on both sets of headphones I have.

I've tried most of the fixes that have been presented in other threads and none of them are working, including rebooting the laptop with the headset in. I've tried that with both of my usb headsets, even though I don�t like using the one that it froze on for the exact reason that any time I have audio playing with that headset and it gets unplugged, it black-screens and freezes my laptop. Actually audio doesn�t even have to be playing, sometimes unplugging it even with nothing playing still freezes my laptop. It does it once in a while with my other usb headset, as well, but not every time or anything close to that often.One thread suggested that modifying /etc/modprobe.d/alsa-base.conf by appending the following line to the file would work:

Code:

options snd-hda-intel model=dell-m6

But that did nothing at all. Someone else said that they saved a copy of alsa-base.conf and replaced the whole thing with that line, so I did that, with no change. Then I purged alsamixer using

Code:

sudo apt-get purge alsa-base

and

Code:

sudo apt-get purge alsa-utils

Then I rebooted, and reinstalled them, which did not fix the issue. However, it did replace the alsa-base.conf file that I modified which shows me that it actually did purge it. (I was an idiot the first time I tried to purge it and only purged and reinstalled alsa-utils..xD So the file did not get replaced, which was when I realised my mistake) I have NOT modified the new file, although I did copy the contents to a text file in case I need to try that fix again.I should also mention that the speakers do work when first booting up Ubuntu to the log-in screen, both with and without headphones I ran the alsamixer diagnostic at the beginning of all this, here's the link: [URL] And then ran it again after purging and reinstalling alsamixer, here's the new link: [URL] I have tried messing with the settings, disabling the headset, setting the input and output manually to internal speakers while the headset is still plugged in, making sure with GNOME alsa-mixer that the speakers are not muted, rebooting with the headsets in and then unplugging them.

View 1 Replies View Related

SUSE :: Lenovo G560: Internal Microphone Stopped Working?

Sep 30, 2010

I've got a handy new Lenovo G560 running with OpenSUSE 11.3 64-bit. After a normal out-of-the-box installation the laptop speakers failed to mute when I plugged in headphones and I was only able to regulate the sound for both the speakers and the headphones simultaneously. Then I installed a whole lot of ALSA stuff and my sound devices were recognized as "PulseAudio server (local)". Speakers muted when I plugged in headphones - a big yay.

Now, though, my microphone doesn't work any more. It worked before, I'd talked on Skype with it, but upon trying to make a call with Skype today I noticed that it didn't work any more. Sound's turned up in KMix, so everything should be okay - does anybody know how to get my microphone working again?

View 8 Replies View Related

Ubuntu Servers :: Apache2 Not Working After Update To 10.10

Oct 12, 2010

i did the update for server 10.4 to 10.10 and now my apache 2 not working.

View 1 Replies View Related

Ubuntu Servers :: Php Stopped Working After Update

Mar 19, 2010

Today i made an update using Webmin, and after that php stopped working, instead of running the files it launches a download. So i checked what was going on, and php module was disabled in apache config. When trying to enable it, it said the file "/usr/lib/apache2/modules/libphp5.so" did not exist, and indeed it disapeared. I tried to reinstal php and apache (with and without --purge, through apt) and it didn't solved the problem.

Also i tried copying the file from another machine, also without success (this time it shows " Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.") Dont know what to do now, im kinda desperated here because this machine hosts my website =P

View 2 Replies View Related

Ubuntu Servers :: SSH Stopped Working - Cannot Restart

May 26, 2011

I am running a headless home file server with ssh, samba, webmin and webgui for Transmission. It was all working fine on my lan until I tried to set ssh to listen on a different port (I read it was safer to do so if you wanted access from the internet). Now I cannot ssh into my server and as far I can tell using webmin the ssh process is no longer running and I cannot restart it. I have restored my unmodified sshd_config file. After restoring my original config file and rebooting I am back and working.

View 2 Replies View Related

Ubuntu Servers :: Apache Multiple SSL VHost On One IP

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

Ubuntu Servers :: Apache Vhost With IP And Domainnames?

Mar 18, 2011

I would like to set up apache so that:

[code]....

Is it possible with only 1 IP or do i need 2 IPs? I have tried several configurations, but they always seem to lead to a dead end with either the IP-site or the domain-sites not working. There has to be a right way to do this.

View 3 Replies View Related

Ubuntu :: Apache And VHost Not Working After Upgrade

Jun 25, 2010

After Ubuntu autoupgraded my Apache, some VHosts are nor working anymore and PHP Code is not oarsed any longer. I think the apache2.conf was overwritten. I do not have a clue how ti fix that, I tried some things but now I am stuck. I have only three hosts: the default, an svn (over port 443) and one called "imcar" which has PHP scripts to be parsed.

So, in my apache2.conf I have this:
Code:
DocumentRoot /var/www
ServerName localhost

The imcar host is set up like this:
Code:
<VirtualHost *:80>
ServerName imcar
ServerAdmin webmaster@imcar
DocumentRoot /var/www/imcar

<Directory /var/www/imcar>
Options FollowSymLinks Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>

ErrorLog /var/log/apache2/imcar-error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>

If I go to imcar in the browser, the default DocumentRoot is shown. If I remove the default DocumentRoot, I get a 404 on imcar.

View 8 Replies View Related

Ubuntu Servers :: Samba Stopped Working After IP Changed

Sep 13, 2010

I run Samba version 3.4.7 as a Domain server for our company, and recently we reorganized our IP-addresses. And the Samba server also got a new IP-address. (192.168.1.60 -> 192.168.1.22). However, now new computers can not join the domain, and old ones can not connect to it correctly (they get a temp profile).

Windows XP gets a temp profile when connecting, and when trying to join a domain I get this error "A domain controller for the domain HAWAR3 could not be contacted. Ensure that the domain name is typed correctly. If the name is correct click Details for troubleshooting".

When trying to connect Windows2008R2 (already a member) it says:
"There are currently no logon servers available to service the logon request."
My guess is that is is some problem with WINS or something.

View 2 Replies View Related

Ubuntu Servers :: Adding Multiple Websites To Vhost?

Jul 15, 2010

I'm setting up a server on Ubuntu 10.04 for development. It all seems to work nicely, I just have one thing that's bugging me. I have a project in /var/www/portfolio, which is as you may guess my portfolio. Instead of the link http://localhost/portfolio I'd like to use http://portfolio.nl. So I set up a file 'portfolio.nl' under sites-available and a symlink on sites-enabled containing this: To get this to work on my local machine I set up this in /etc/hosts:

[Code]...

View 2 Replies View Related

Server :: Php Not Working On One Vhost, But Works On All Others?

Dec 18, 2010

I just added a ssl vhost.php files are not running on it, they just get downloaded when I click them. All my non-ssl vhosts were added by the admin software of my hosting company, but I had to manually add the vhost entry for my ssl vhost.Here is the entry I added for my ssl vhost:

Code:
<VirtualHost www.vhost.com:443>
DocumentRoot "/var/www/vhosts/vhost.com/httpsdocs"

[code]....

View 1 Replies View Related

Ubuntu Servers :: Email In Outlook Express Has Stopped Working?

Sep 28, 2010

i somehow managed to get squid proxy server installed.My problem is my email in outlook express has stopped working (incomming pop3 server is mail.webmail.co.za)I think i need to install a pop proxy to get this going, can someone recommend a pop proxy that is easy to configure or anything else that could resolve this.

View 9 Replies View Related

Server :: Add A Second Vhost To Once Working Apache Config

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

Ubuntu Servers :: Script To Automatically Create Vhost And Update /etc/hosts?

Jul 9, 2011

Do you have any idea on how to achieve my goal? Here is the scenario. As a requirement on our development process for every ticket we have we need to create a branch(svn) so that we can develop without disturbing other developer. Now for every checkout I made I need to create a vhost so that I can develop first in my local before deploying to the branch.The site I'm working on is based in Drupal. The files I checked out is just the all folder of Drupal. The core files are already in my local. So the script would grab the core files and copy the all folder in my checkout branch then put them in the vhost.So basically I need a script that will do these automatically for me:1. Setup a vhost Ex: My branch name is 1205googleplusone. Inside that branch has two folders, all and default. What I need only is the DocumentRoot should only point to all folder.2. Update the /etc/hosts Ex: The URL should be 1205googleplusone.domain.com. 3. Create a new database for the new site The script should create a new database and update the configuration.php

View 6 Replies View Related

Ubuntu :: Apache2 Redirect After Changing 'Document Root' From /var/www?

Apr 2, 2010

In /etc/apache2/sites-available/default, I changed my 'Document Root' and 'Directory' from /var/www to /var/www/newdir.have an index.php file in /var/www/newdir I use to authenticate, but when I try to redirect back to index.html in /var/www, i get a 404 error.Anyone have info / know where the link to this discussion is

View 5 Replies View Related

Ubuntu :: Karmic Stopped Automounting USB Drives And Internal DVD

Feb 28, 2010

yesterday my 9.10 stopped automounting my external USB drive, and in general any pendrive I put into any USB slot. What's worse, it also does not recognise CDs put into my DVD drive. (The only update I recall doing was the official update to the "sudo" package.)

1. The USB issue.I plug in my external hard drive. Seemingly, nothing happens. No new icons appear anywhere.
b) I tried gconf-editor and in apps -> nautilus -> preferences "media_automount" is set to YES.
c) After searching around these forums, I even put "usb_storage" into /etc/modules

2. The DVD drive issue.I put an audio CD in the drive. Usually an 'Audio CD' icon appeared after a few seconds, but now nothing happens. There is a "cdrom0" icon visible in the explorer, but when I click it, I get the following error: Code:Unable to mount cdrom0

So, it seems that for some strange reason my Karmic stopped being able to automount any new media. Does anyone have an idea why it is so and what should I do to bring this much-needed functionality back?

View 9 Replies View Related

Ubuntu Multimedia :: Profile For Internal Audio Device Keeps Changing?

Jan 27, 2011

I can get sound out of my machine just fine, but for some reason, no matter what audio player I use, every time I change the song or pause playing half my speakers will kill sound and it will seem like the sound profile has reverted to Analog Surround 5.0 Output. When I check my sound configuration it still lists 5.1, and I have to select another setting then change it back to 5.1 to get my speakers all functioning again.

View 1 Replies View Related

Ubuntu Networking :: Wireless Suddenly Stopped Working AND Rfkill Command Not Working

Jul 13, 2011

When originally installing 11.04 I had problems getting my Ralink 5390 wireless card to work.

Today my computer froze completely and I had to turn it off via the power switch. When I turned it back on, wireless was no longer recognized! My iPod can connect to the network just fine, so it must be an Ubuntu problem. There are no problems with my ethernet connection either.

I researched this and found several threads about blocking and unblocking wireless devices using the rfkill command. Well, unfortunately for me the rfkill command doesn't work. When I type sudo rfkill list or sudo rfkill unblock all, nothing happens; it just returns me to my bash prompt. I even tried uninstalling and reinstalling rfkill...nothing.

View 1 Replies View Related

Ubuntu Servers :: Take Apache2 Away From Root?

Feb 4, 2010

I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?

View 6 Replies View Related

Ubuntu Servers :: Apache2 - 98 - Address Already In Use

Aug 29, 2010

I am using Ubuntu Server 10.04 64bit. I am getting an Apache2 start up error after I setup my certificates and configure Apache2 for HTTPS. At the point on start up where I need to type in my certificate pass code I get a lockup due to the Apache2 process being in a hung state. I reboot if needed and switch to console tty2. When I type in the command.

Code:

I get the following error.

Code:

To correct the problem I do this.

Code:

From the output of the command above I look for the apache2 process and make note of its process ID. Then, I kill that process ID. For example, the command below has an apache2 process ID of 1131.

Code:

Next, when I run this command.

Code:

The apache2 server starts up and asks for my certificate password, accepts it when I type it in, and runs perfectly fine afterward.

Fortunately this instance of Ubuntu Server is running inside a VMWare virtual machine. I can just "pause" the virtual machine if I need to rather than going through this crude and tedious start up process too frequently.

Crude and tedious are feelings I'm having too frequently lately with Ubuntu Server.

View 5 Replies View Related

Ubuntu Servers :: Apache2: Php Not Parsing

Oct 18, 2010

I've reinstalled my system and installed apache. I've installed php5. 'a2enmod php5' returns with a message telling me that php5 is already enabled.

However, this code does not parse:

Code:
</php
phpinfo() ;
/>

I get a blank page. When I view the source code for the page, I see the php code.

How do I get php to work?

View 3 Replies View Related

Ubuntu Servers :: Setting Up Apache2 With SSI The *right* Way?

Jan 5, 2011

So I've got a box running 10.04LTS Server, and on it is running the latest build of Apache2.It's a home box - a server set up for the sole purpose of experimenting and having fun with. So far, the fun is mostly breaking it over SSH and then fixing it when I get home and can log into it via recovery.What I really want to do is to get this box set up with Apache2 the way it seems like it was designed - with Apache2 serving web pages from its default file location (/var/www) but also being able to log in and upload/download new web page files to that directory over SCP or SFTP. I keep hitting snags.Here's what I've done so far:

1. The server is set up in a DMZ at home and my router updates a Dynamic DNS record; so far I can SSH into it no problem.

2. Apache is working. I get my "it works!" page when I enter either the IP or the dyndns domain name.

3. SFTP is sort of working. I can log on using WinSCP and see the files and download them, but I can't upload to the default directory with my normal login.

Here's my issues: 1. I want to set up Apache *correctly*. To me, that means leaving it pointing to the default directory, but still being able to upload to that directory. I have not (and probably will not) enable the root account. I've set the permissions to 755. I've tried chown'ing the directory, but then it seems I can't view the webpages.As a workaround, I created a www folder in my default user home directory and pointed Apache2 there in the 'default' file in /etc/apache2/sites-available. The changes read as follows:

Code:
DocumentRoot /home/username/www
<Directory />
Options FollowSymLinks[code]...

That gives me a workaround for the default directory SFTP issue, but I would rather learn what I need to do to have it set up and working with default values.

2. You may notice I added Includes under the Options. My goal is to get server-side includes working. But they aren't. I have some existing webpages my work has set up - I using these as a template to use to adapt a flash movie I made to a specific resolution, as well as to learn how to optimize my flash for a webpage. Our webhost uses virtual hosting; I am not yet doing so. I'm not sure what they've done to set up the server-side includes, but the files they are using are all html files - no shtml. The include files themselves have either .htm or .html extensions. All of the pages have .html extensions.

My reading said that I need mod_include installed in Apache2. Where can I check to see that it is installed? Where do I need to add the Includes under Options?Is it in the right place? And finally, where do I need to add XBitHack on to enable it? This is the method that Apache suggests, but the documentation offers no clue as to where to put it. Most of the documentation out there refers to apache.conf, but that's the Apache 1.3 way of doing things.I really just want this to be set up according to the defaults as much as possible.I want to have a good working knowledge of Apache and of how to set it up and configure it, but dang it if it isn't a frustrating process.

View 8 Replies View Related

Ubuntu Servers :: Removed Apache2 But It's Still There?

Mar 8, 2011

I'm very baffled by this, I was setting up my mumble server since my old one had a hard disk failure. I was messing around with web registration but decided I didn't want it since this server is really only for a few friends.

So I removed all the mumble-django and apache2 packages required for web registration, but for some reason apache2 is still on my system and listening for connections.

terminal output below to further clarify.

Code:
Linux voiceserv 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011 i686 GNU/Linux
Ubuntu 10.10
Welcome to Ubuntu!

[Code].....

View 3 Replies View Related

Ubuntu Servers :: Apache2 Not Accessible From LAN

Apr 1, 2011

I have a problem with apache server. The thing is - I can connect to my server on localhost, but when I try to connect from local network, it doesn't reply.

I can ping my web server from lan. I can ssh my web server from lan.

I haven't modified iptables since install except these commands>

Code:
iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d $MY_SERVER_IP --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp -s $MY_SERVER_IP --sport 80 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT

[Code].....

View 1 Replies View Related







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