Ubuntu Servers :: Creating Virtual Apache Servers?

May 3, 2010

I have Webmin installed on an Ubuntu server. I currently have a successful apache server running on port 80, however I want to create a virtual host on port 81. When I try I go to servers->Apache Webserver-> Create Virtual Host I change the port to 81 and the document root to /var/port81www then I click create. How ever when I goto 192.168.1.5:81 (local ip, I know I have to port forward but its not even working local) it does not work.

View 5 Replies


ADVERTISEMENT

Ubuntu Servers :: Apache Virtual Hosts Behind NAT?

Aug 18, 2010

I'm wondering if this is even possible before I start the learning curve with Ubuntu and apache virtual hosts.

I have a static external IP address that resolves to the various domain names I will be using. I have a web server inside my network with a private IP address and any http request to the firewall is forwarded to the webserver on the appropriate port. This setup works well when using the same web page/configuration for all of the domains.

Will it be possible to use named virtual hosts in this configuration, or will the NAT'ing interfere?

View 9 Replies View Related

Ubuntu Servers :: Setting Up A Virtual Host In Apache ?

Feb 22, 2011

I am trying to set up an Apache2 virtual host to test sites I make from my own computer.

I used this guide to set up my LAMP and vHost, The LAMP stack seems to be working great, but I run into some problems when I try to set up a vHost

As described in the guide I

1. made a new directory in my home folder /home/[myname]/www/test.dev to put my site in (it currently contains a simple index.html file as a test).

2. In /etc/apache2/sites-available I copied the file "default" and renamed it "test.dev"

3. I edited the content of "test.dev" to look like this:

Code:

4. I enabled the site using the command "sudo a2ensite test.dev". I then restarted apache "sudo /etc/init.d/apache2 reload".

5. I edited the hosts file: "sudo gedit /etc/hosts" to look like this:

Code:

6. I restarted apache "sudo /etc/init.d/apache2 reload".

Now if I enter "http://test.dev" in my firefox's adress bar I just get the apache2 "It works!" site. What is going wrong to cause firefox to show the "It works!" page rather then my own test site?

View 1 Replies View Related

Ubuntu Servers :: Apache Virtual Hosting On HTTPS?

Apr 11, 2011

I am trying to get name based virtual hosts all running on HTTPS (port 443) so I can run multiple sites on the one IP.

The DocumentRoot needs to be different for each host.

[URL]

However, I am unable to find where to actually enable these hosts in the configs. The apache website says to put it in httpd.conf however that file is empty on my machine.

The existing default virtual hosts are in "/etc/apache2/sites-available/default" and "default-ssl"

The main config file is /etc/apache2/apache2.conf

I am running version 2.2.16 of apache

I need to use the same .htpasswd file for all the sites.

I have configured CNAMES on my domain for all of these hosts.

View 4 Replies View Related

Ubuntu Servers :: Apache Virtual Host Unable To Connect

Jan 18, 2011

I've set up a server running Ubuntu 10.10 (desktop) with apache. Problem is: When I try to configure multiple virtual hosts I can only access the first one. I'm sure that I'm missing something basic in my setup, but I cannot seem to figure out what.

What I want is simply two virtual hosts, one only available on the LAN where I can test my php files and one "live" available from the outside.

Heres what I've done:

Installed Apache2.2
Copy /etc/apache2/sites-available/default -> /etc/apache2/sites-available/dev
Modified "dev" config DocumentRoot and Document to point to /var/www/dev
Modified "dev" config VirtualHost to <VirtualHost *:1337> (port change right?)
Modified "default" config DocumentRoot and Document to point to /var/www/live

[Code].....

Live works fine, but dev cannot connect (as if there is no server there).

View 2 Replies View Related

Ubuntu Servers :: Apache 2.2 Users And Groups In Virtual Hosts?

Mar 3, 2011

I have Apache up and running and have a few virtual sites enabled. All these sites belong to the same user and group and the directory root for each site is in /home/{same-user}/www/{site-name}/htdocs/

I use Samba to connect from Windows to these directories and by default, files and directories are saved as the {same-user} and {same-group}. My question is, would it cause a problem if I changed the user and group in the virtual server directives in /etc/apache2/sites-available/site.conf files, giving apache permission to write to these files and directories. In the past I have changed the user and group to www-data (the default) but this seems inefficient an cumbersome compared to what I intend to do.

I use the server mostly for development, although at times I have a small site or two available to the public. Before I do this I want to be sure I'm not leaving a gaping security hole by changing these things. If this is all wrong, what is the standard way of running virtual hosts from apache and what is the standard document root for virtual sites?

View 4 Replies View Related

Fedora Servers :: Apache - Creating Symbolic Links To Movies Directory

Mar 6, 2009

I'm using FC10 and I want to create a symlink to my movies directory in my home folder:

This is what I did:
I created in
/var/www/html
ln -s /home/username/movies movies

Then in /etc/httpd/conf/httpd.conf
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

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

<Directory "/home/username/movies">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>

Restart apache and then the test page is working.

The directory /home/username/movies has following permissions:
drwxrwxrwx 2 apache apache 4096 2009-03-05 23:43 movies
When trying to access my webpage at localhost/movies I get the 403 Forbidden Error.
Ok then, entering:
sudo -u apache ls /var/www/html
> movies
This works, sudo -u /var/www/html/movies returns the permission denied error.
As well sudo -u /home/username/movies
Is the user apache chrooted by default? SELinux is in permissive mode. What can I do?

View 4 Replies View Related

Fedora Servers :: Apache Not Recognizing Virtual Host 12?

Apr 17, 2010

I installed apache server on my Fedora 12. Its showing the test page 127.0.0.1, but when I give the address 97.168.234.76 (0r www.chaalu-kam.com), it tells that the requested url could not be retrieved.

I have made the following additions to the /etc/httpd/conf/httpd.conf file

Code:
NameVirtualHost 97.158.234.76
<VirtualHost 97.158.234.76>
ServerName www.chaalu-kam.com
DocumentRoot /var/www/html/

[Code]....

View 1 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

Ubuntu Servers :: Apache Virtual Host To Access Internal Server?

Apr 20, 2010

I'm not sure is this is possible or not, but what I would like to do is take my public address mydomain.com and configure a virtual host something.mydomain.com only instead of having the content on the same server I would like it to point to the IP of my virtual machine that is in my private network and display that page publicly. Does anyone know if this is possible, or how to do it? I have done this with port forwards, but would like them both to be on the same port.

View 3 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 :: Created A New Virtual Host In Apache Using Webmin - Doesn't Work ?

Nov 14, 2010

I created a new virtual host in Apache using Webmin and am having trouble getting it to work. When I created it, I opted to create the config file as a "New file under virtual servers directory /etc/apache2/sites-available". So now I have a default config file /etc/apache2/sites-available/default and a new one created by Webmin at /etc/apache2/sites-available/webmin.1412323.conf. It seems like the settings in that new Webmin config file aren't being picked up by Apache -- when I try and browse to mywebsite.com it shows my root /var/www folder, not the subdirectory /var/www/mywebsite.

Is there a way I can tell Apache to include the new Webmin config file for the virtual host or should I just copy the directives into the default file at /etc/apache2/sites-available/default? It seems like Webmin should automatically configure Apache to work with any newly generated config files.

View 4 Replies View Related

Ubuntu Servers :: Separate Virtual Machines For Apache, Mysql, File Server?

Jul 11, 2011

I'm working on a side project where I would like to install three ubuntu server systems,each with only one task.So server0 would be the apache server, server1 would be the database and server2 would be the file server.which key terms I should be researching?

View 9 Replies View Related

Fedora Servers :: Make A Website With A Virtual Host Of Apache Visible?

Nov 8, 2010

In first place i am sorry about my horrible English. I want to make a web site with a virtual host of apache visible by all the computers connected to my networking. I put this in the end of the file "/etc/httpd/conf/httpd.conf"("192.168.1.194" is the IP address of my computer. The default gateway IP address is "192.168.1.1"):

[Code]...

It works if i go to "http://192.168.1.194/" with the browser of the computer with apache inside, but on the others PC of my networking this method don't work!

View 2 Replies View Related

Ubuntu Servers :: Correct Permission Handling Apache Virtual Hosts In Home Folder?

May 2, 2010

i use virtual hosts to develop several web applications. These are located in my home folder under /home/user/projects/project After a fresh installation, i always get a 403 forbidden error. After googling and reading on this forum, several solutions are mentioned for this problem. But i can hardly believe putting using a chmod 755 on my home folder is a correct solution. What is the correct way of doing things in this situation?

View 5 Replies View Related

Ubuntu Servers :: VmWare Version That Mirrors Virtual Machines In Different Servers?

May 25, 2011

I am looking for a version of vmware that manages 2 severs at the same time and that mirrors them such that if one goes down we can still work on the second and of course it also works as a backup. Also, must work on a ubuntu server I have looked but there are so many version that I don't know which one is the best.

View 1 Replies View Related

Ubuntu Servers :: Apache2: SNI & Virtual Hosts - Multiple Virtual Hosts With Ssl And Only 1 Ip Address

Jan 17, 2011

[Code]....

What I want: multiple virtual hosts with ssl and only 1 ip address: In my example: server = 192.168.227.129

[Code]....

View 9 Replies View Related

Ubuntu Servers :: Creating An Intranet On 10.04?

Sep 2, 2010

Installed 10.04 as a LAMP. I want to be able to create a new intranet site for testing purposes.

When creating a new site with in apache, what is the recommendation for the folder? With in the var/www? Everything appears to want a domain address and since its local only, what do I use as a domain?

I have webmin installed and I would think creating a virutual server would be my first step, but I am getting hung up on the domain address.

View 2 Replies View Related

Networking :: Creating A Domain With Servers?

Jan 25, 2010

I have been looking at how to create a domain with only linux servers, but with both Windows and Linux PC's as clients.

View 2 Replies View Related

Ubuntu Servers :: Security - Creating A Photoblog On Wordpress

Feb 5, 2010

I am interested in creating a photoblog on Wordpress. Before I jump in I thought it would be wise to ask a few questions here first rather than getting into trouble and then firing absurd questions left and right. I am not very experienced regarding servers but not afraid either I was reading How-to's online reagarding installing Wordpress on Linux [url] and few questions came to mind :

1) Like any other server, does the computer that will run Wordpress have to be up and running for 24/7?

2) Since I will install Wordpress on a desktop, should I be concerned about my machine being compromised? I am not an expert on internet security so this is a big concern of mine.

3) Is it a good idea to install Wordpress on a personal desktop at all? Does running Wordpress from a different partition of the hard drive (if it is possible) help at all.

View 4 Replies View Related

Ubuntu Servers :: Creating A List Of Banned IP's With Fail2ban

Oct 16, 2010

I'm trying to use a technique suggested by a fella at this website....

[URL]

He suggests adding an echo line to the actionban line in order to create or add to a file that will contain a list of all the IP's that fail2ban has banned.....but it doesn't seem to generate any output. .....here is the command.....

actionban = iptables -I fail2ban- 1 -s -j DROP
echo >> /etc/shitlist

I never get any IP's in the file so the echo part does not seem to work.

View 5 Replies View Related

Ubuntu Servers :: Filesystem To Use When Creating A Home Server / Nas?

Oct 21, 2010

What is the recommended filesystem to use when creating a home server/nas?

I'd be sharing files using SAMBA, DLNA Server or some sort of streaming. I'll have two win7 laptops, 2 ubuntu desktops and ps3 accessing the files. Most of the time the server will just 75% read from 25% writing.

Would ext4 be an ideal?

View 4 Replies View Related

Ubuntu Servers :: Creating Php Conf And Load Files?

Apr 6, 2011

I need to create .conf and .load files for php. PHP is installed and I've verified PHP with

test.php <?php
print_r (phpinfo());
?>

Is there boilerplate available for creating the .load and .conf files? I am having trouble finding it in what's been installed.

View 3 Replies View Related

Fedora Servers :: Creating A Web Caching Server For Myself

Feb 12, 2009

I am looking into creating a web caching server for myself using fedora 10. I believe I need to use squid for this but it seems to have a lot of features. Basically, all I want for now is to be able to cache web pages that I and my network users use the most, increasing access time and lowering the load on my internet connection. Can squid do this and can someone point in the right direction on an article on how to configure such a thing?

View 5 Replies View Related

Ubuntu Servers :: Folder Permissions Automatically Set When Creating File

Apr 27, 2010

I have a little problem: I have a share folder on Ubuntu server: - Dump That folder is share with SAMBA and everyone can put files on it
My problem is the following: When someone create a folder, the folder permissions are automatically set with:
(let's take my username: Yann)

Owner: Yann
Group: Yann

Clearly that's wrong.. I want the Group to be auto set has "users" so everyone can access the folders on that share. Anyone know how to change this ? chmod and chown is getting a bit boring

View 2 Replies View Related

Ubuntu Servers :: Minimal Hardware - Business Creating Webpages

Sep 8, 2010

I am thinking of starting a business creating web pages and supplying a 'enterprise server' type solutions, whilst still being highly cost effective - eg recomend the client to use an 'old' pc for the majority of their server needs (LDAP, mail, firewall, web server etc). I plan on doing all of this on a linux platform, so as to pass the cost savings of related 'microsoft enterprise systems' to my clients ~ thereby making my proposition more interesting to clients. However I'm not sure if the 'old' pc idea will 'cut the mustard' in terms of serving web pages. So my real question is, at what point does the speed of the internet connection reach a bottle neck with the speed of my CPU? As an 'example' in case I'm not being very clear (which I'm not sure I am).

My old pc has an AMD athlon chip in it, and equally old 30GB and 40GB HDD (SCSI ~ did I mention that they are old!). My intention is to set up a system to the above type specification at home, to see how long it takes me to do, and to give me an idea of what I should charge clients. I understand all the technology, but initially (to save on personal startup costs) I was intending to use my old pc as my personal gateway to the world, $40 for the web registration for 1 year is a considerable saving compared to the $20 per month for a hosted service ~ although as soon as things are going and being 'profitable' I would most likely either upgrade my server or get a hosted service. Any tools I can download onto the server to 'determine' the power consumption over any given period?

View 8 Replies View Related

Ubuntu Servers :: Creating MailServer Using Postfix And Gmail SMTP

Mar 1, 2011

I recently created a webserver to host my website, using a Ubuntu 8.10 based system. (With some help from my experienced brother of course).I now want to create a mailserver to go along with my website. In setting up postfix to work with gmail smtp servers, I ran into a lot of permission errors.

View 2 Replies View Related

Ubuntu Servers :: Creating A Static Cdrom Automount Point?

Mar 14, 2011

I have an Ubuntu server running Samba and I would like to share out the cdrom drive to the network. I made a share of the /media directory and it seems to work fine when I insert USB drives and I am able to browse and work with files. However, when I insert a cdrom it automatically mounts to /media/<volume name> and I get a permission denied error when I attempt to access it over the network. I am assuming this is happening because the permissions do not include the execute bit and being a read only file system I can not change this. I made the directory /media/cdrom and manually mounted the cdrom to it and I can successfully access it over the network just like the USB drives. So my question is: Is there a way to make the cdrom automatically mount and unmount to /media/cdrom when I insert and eject disks instead of to /media/<volume name>? Or maybe just have the permissions automatically set so Samba users can open it instead of just see it.

View 1 Replies View Related

Fedora Servers :: Creating The Initial Device Nodes?

Sep 16, 2009

I'm putting a server together and have run into a boot up problem. (I thought about putting this in the server forum, but it might be a more generic problem that others have seen and know how to rectify.) The install seems to have gone just fine. I have the /boot partition on an internal IDE drive. The rest of that drive and another are mirrored in a Raid0 configuration (using the Linux software to do that) for data storage. The swap partition is a part of the Raid5 SCSI array that also has the / (root) partition on it.

After installation it would not finish the booting process. I suspected that GRUB didn't like all the Raid arrays and such, but it seems to be fine. I can say that because the machine will boot into rescue mode with the GUI splash screen and I have access to the whole directory tree. I have already searched on-line and following prudent advice, ran the yum update while in the chroot /mnt/sysimage mode. That only took overnight to download and most of this morning to complete. Still no dice. Used vim to delete the rhgb quiet commands in the grub.conf file so I could see where the kernel seems to be hanging.

So right after the "Creating initial device nodes" is a line about my generic PS2 wheel mouse. So I tried a USB mouse. Got more output so tried swapping out to a USB keyboard. Got a little further with more information about input devices, but still stops. Also, I tried a PCI video card just to make sure the onboard video wasn't the problem - no change. So, if someone in the Fedora community knows what loads up or is configured right after the mouse and keyboard, I might be able to figure out what's causing the computer to hang during the boot process.

View 2 Replies View Related

Fedora Servers :: Svnadmin Error Creating Repository

Feb 28, 2010

I'm working on setting up a new subversion server and getting an error I'm not having much luck resolving.

I'm attempting to create the repository in /home/svn/foo with the command svnadmin create /home/svn/foo while in /home/svn.

I am greeted with the error: svnadmin: SQLite compiled for 3.6.20, but running with 3.6.17

I installed subversion via yum install subversion

I've installed SQLite 3.6.22 from source and removed/installed subversion with no change.

What gives? I wasn't really wanting to install subversion from source. Seems a bit excessive.

Environment stuff:
[root@COS svn]# yum repolist
Loaded plugins: presto, refresh-packagekit
repo id repo name status
fedora Fedora 12 - i386 enabled: 15,366
updates Fedora 12 - i386 - Updates enabled: 4,731
repolist: 20,097

View 1 Replies View Related







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