I have been using Apache2 and webmin with my raspberry pi. after a restart and reinstalations apache wont start.
I have an Ubuntu 11.10 with Apache2 that is hosting some sites. I would like to add a site that is hosted in tomcat, so I installed mod_jk and set it up. The tomcat site is hosted under /app over ajp13.
When I include the line
JkMount /app/* ajp13_worker
in inside of the <virtualhost> in either 000-default or default-ssl, it works perfect.
I have two domains (siteA.com & SiteB.com) that point to the same webserver and I would like to show different web pages for each.
The steps I have taken so far are:
Copy the default site (siteA) to siteB
1) sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/siteB
2) sudo vim /etc/apache2/sites-available/siteB
<VirtualHost *:80>
ServerAdmin info@siteB
Why does this not work...
user@user:~$ /etc/init.d/apache2 restart
* Restarting web server apache2
* We failed to correctly shutdown apache, so we're now killing all running apache processes.
I have the same problem.
I use Ubuntu 12.10 64 bit and I want make convenient environment for backuping of my site and it's database of real hosted site (not dedicated server).
So, I install Ubuntu and make virtual host in my home folder /home/citromon/localhost/:
Code:
mkdir localhost
cd localhost
mkdir site.by
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/phpbb.by
sudo gedit /etc/apache
I had my site (let's call it site3.com ) set up for apache which I am now trying to move to nginx.
How do I insert a line of text into a specific location in a text file? I'm trying to write a script that installs itself and a few other scripts that run at startup.
I'm new to Linux world and I'm getting stuck with the Apache version 2.2 Virtual host configuration.
In my local /var/www I have 2 sites (and the default localhost) in their respective directories:
/var/www/importer
/var/www/foostore
Importer is an importer for a Opencart installed into daxstore directory, which I'm developing.