Ubuntu :: Create A Virtual Directory In Apache For One Of Company's Internal Websites?

Feb 22, 2011

I have a need to create a virtual directory in Apache for one of my company's internal websites. I have confirmed that I can create an alias for a local directory: Alias /vdir/ "/usr/share/somefolder/"

So I would get to this virtual directory by going to http://server.domain.com/vdir/. But when I attempt to point it to a shared folder on another server:

Alias /vdir/ "//servername/share/"
or
Alias /vdir/ "//servername/share/somefolder/"

Both return the 404 Not Found error, which I would expect if it is not connecting to the share. I've searched but can't seem to find the correct syntax and I know I am missing something basic. I have searched google and these forums but can't seem to locate the exact syntax. Are there other lines in the config file I need? Permissions should be no problem the shared is EVERYONE has access (for now).

View 7 Replies


ADVERTISEMENT

Server :: Tunnel Apache Virtual Host To An Internal Apache?

Jan 24, 2010

I am upgrading my server and I have a lot of sites. Since I cannot take my server down for a few days, maybe a week until I manage to migrate all the sites to the new machine, I figured I could migrate them one by one. After migrating one, I would somehow tunnel the requests of that name virtual host to my internal machine. When everything is migrated, I would then switch the machines, update ip's and stuff and everything will work just fine.

However I cannot seem to find a way to do this tunneling. is this at all possible? If not, what alternatives do I have?

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

General :: Access Internal Network Virtual Hosts In Apache?

Mar 6, 2011

I currently have an Apache Web Server running on Ubuntu 10.4 and I use a DynDNS service to make them accessible to the outside world via a domain and/or subdomain.

My configs currently look like this:

<VirtualHost *:80>
ServerAdmin <obscured>@<obscured>.com
ServerName <subdomain>.<obscured>.com
ServerAlias <subdomain>

[Code].....

This works fine from access outside of the network and all subdomains resolve to the correct directory.

The problem I am having is with accessing a subdomain over my internal network.

I can access the Web Server using the server's IP address: http://192.168.1.123/ but this always takes me to the same virtual host and I don't know how to distinguish between different virtual hosts (different subdomains).

Ideally I would like to access the same subdomains using http://<subdomain>/ where <subdomain> is the same as the subdomain attached to the external domain name.

View 2 Replies View Related

Ubuntu Networking :: Can't Connect To .local Hosts / Websites On Company Network (DNS)?

Jun 27, 2011

Problem:Your company network has internal only hosts / websites with names that end in .local, e.g.Your freshly installed Ubuntu machine works fine on the network, has internet access, etc. but cannot connect to these particular systems.Testing DNS with tools like dig / nslookup works fine, but normal name resolution with ping / telnet / browsers does not work.Solution:1. Open a terminal window2. Enter the command sudo nano /etc/nsswitch.conf3. Change the following line:hosts: files mdns4_minimal [notfound=RETURN] dns mdns4to this:hosts: files dns4. Press Ctrl-X, Y, Enter to saveExplanation:Ubuntu ships configured to do name lookups for self-configuring networks, based on the AppleTalk / mDNS / Bonjour protocol. In the configuration shipped for the resolver, this protocol is considered the final aurhority for the ".local" top level domain, and DNS will not be checked. The above configuration change eliminates this and restricts lookups to (a) /etc/hosts file, followed by (b) DNS

View 1 Replies View Related

Ubuntu :: Creating Forum For Internal Company Use?

Jul 8, 2010

I'm the opensource nut at my company (which services MS networks) and I've been asked to set up an internal forum for our tech's to use to sever much like a knowledge base. I've never set up any forums before and was wondering what YOU guys recommend to use. I've briefly looked at Joomla and it seems nice and fairly easy to use.

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 :: Create New WWW Directory Apache?

May 13, 2011

I want to make a image directory in the WWW folder. It works fine, but when I link to the images on the page it stands that I don?t have permission to the picture, 403. How do I set the permission?

View 2 Replies View Related

Debian Configuration :: Apache Directory Alias Leaking Into Virtual Hosts

Sep 14, 2015

I don't know if this should be a followup to my prior topic [URL] ....

Each of the pieces I've installed all have an "Alias" directive in the conf file to link the directory where they live to be present on my server. For instance, DotClear lives in /usr/share/dotclear/web/ and there is a directive

Code: Select allAlias /dotclear /usr/share/dotclear/web
that directs http://myserver/dotclear to that site.

Now, I've set up VirtualHost entries for my DotClear and Owncloud with their own hostnames.

Code: Select all<VirtualHost *:443>
   ServerName          myowndotclear.com
   ServerAlias         www.myowndotclear.com
   DocumentRoot        /usr/share/dotclear/web

[Code] ....

Something similar for Owncloud.

The problem is when I go to [URL] ...., I get to my mythweb site.

This is not so good. So, for the sites that have their own hostnames, I removed the "Alias ..." directive. Of course, now I can't get to the hosts by going to the primary site which is probably fine, but I also still get my mythweb since that doesn't have it's own virtualhost entry.

This doesn't seem like correct behavior. Is there a better place to put the "Alias ..." directive so that it only works from one site and not all of them?

I am also thinking I should just link the directories into /var/www/html, but I'm not sure that's a better solution.

View 2 Replies View Related

General :: Get Virtual Machine (virtualbox) Accessible On Company Network?

Jul 11, 2011

I created an archlinux vm guest using virtualbox on my windows desktop at work. I'm planning to use it for django development because there are no unix machines available to use as a workstation at work.

From the vm guest I can ping/ssh to other machines in the network, but not the other way around. It's like even though the guest machine has an ip address on the network and a hostname, neither is recognizable.

View 1 Replies View Related

Networking :: Can't Access Websites From Internal Network

Aug 28, 2010

I am in the process of setting up my own Linux gateway/firewall using two nics eth0(external network) and eth1(internal network). The Linux gateway hands out ip addresses using dhcp3-server, and uses iptables to route the traffic correctly. Clients are able to connect and access the internet...everything is working great, HOWEVER I can't access my apache virtual hosts websites from the internal network? They work just fine if i access them from the outside world

I can type ip of the web server, 192.168.0.201 and it shows the first virtual host listed in my /sites-enables/000-default folder. but i can't use any DNS entries. I don't have any internal DNS servers running. This doesn't makes sense, because if i replace the linux firewall/router with my normal linksys wrt54G router it works just fine.

View 4 Replies View Related

Ubuntu Servers :: Apache Two Websites One IP

Jun 12, 2011

So here is my problem. I have websiteA.com and websiteB.com. I only have one public IP address. And websiteB needs to be constantly restarted, so both need to be on separate apache servers or instances.Virtual directories wont work cause I can only point websiteA to a directory /var/www/websiteA.Reverse proxy wont work cause I can only catch a sub directory.Proxy /websiteA/ URL...Does anyone know how I could get this to work in anyway.

View 4 Replies View Related

Server :: Apache Virtual Host To Limit The Concurrent Connections Of Virtual Hosts?

Jul 3, 2009

apache virtual host to limit the concurrent connections of virtual hosts? Taking into account the host of each virtual user's home directory can also have more than one subdirectory, which should be restricted to a subdirectory. Is beyond the control of the operation of these sites in a subdirectory. Best local restrictions or limitations to the overall situation.

View 1 Replies View Related

Fedora Servers :: Apache To Block Old Websites?

Apr 8, 2010

I have got a small queston: I have got several websites and some time ago I decided to delete some of them. As a result there is no virtual hosts on my web server, but if I will go to my_old_website dot ru I will be redirected to one of my current web sites (or if I will paste an ip address in browser), I want to know, how to block this?My virtual host's looks like this now:

Code:
<VirtualHost *:80>
ServerAdmin my_mail

[code]...

View 4 Replies View Related

General :: Create And Configure A Virtual SAN Disk And Work On It With Virtual Machines?

Jun 29, 2010

I would like to configure and SAN disk. But I do not have a physical SAN disk. Is it possible to create and configure a Virtual SAN disk and work on it with virtual machines?I have around 400GB of space in my Laptop.

View 7 Replies View Related

Server :: Create A Virtual Host And Virtual Ip In Proftpd Centos?

Nov 22, 2010

I want to create a virtual host and virtual ip in proftpd linux centos. can anyone please help me on this,I'm new in linux.

View 8 Replies View Related

Networking :: Can Samba Be Used To Create Websites

Mar 9, 2010

can samba be used to create websites. just wondering if possible

View 2 Replies View Related

Red Hat / Fedora :: Virtual Box Internal Network

Apr 29, 2011

I decided to write in this section because my guest OS on VirtualBox is Fedora, and I need to configuring the internal network in order to communicate with another guest running Mandriva (actually I don't succeed in configuring the network on Mandriva too). I configured VirtualBox (host OS is Ubuntu) from the graphical interface as follows: Linux Fedora (VM) -> Settings -> Network -> Board 2 (the first is used with NAT) ->

When I run Fedora now I can see two network interfaces (eth0 e eth1): the first connect Fedora to Ubuntu, the second should be my internal network (right?! I'm not sure about this). DHCP server doesn't seem to work, and I don't know how I can configure the network in a static way..

View 6 Replies View Related

Ubuntu :: Apache Process (Internal Dummy Connection)

Aug 13, 2011

I have this problem for a month now. Some apache process that appears rather slowly using 100% cpu for each core. Today I watch some logs in apache2, namely other_vhosts_access.log and discover this
server:8181 127.0.0.1 - - [13/Aug/2011:12:34:52 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
On 8181 I have google sitemap generator running but I have it for over a year and it never make any problems.

View 1 Replies View Related

General :: Is It Legal To Open A Small Business To Setup (Ubuntu) Desktops / Create Websites

Oct 8, 2009

Since Ubuntu and other Linux Distros are free to download and distribute. Would it be illegal for me to have a Small Business of my own that would charge individuals/small-businesses to Install and Setup Linux desktops. I wasn't sure how that GPL license worked. I figured I would be charging individuals for setting up Linux Desktops on their machines or small business/offices and training/teaching them on the various applications they could install on their own.

Also, would it be illegal to create websites using Apache, Tomcat and other Open Source tools and then sell those sites. I figured many people are turned off by learning or installing something other than Windows desktops on their pcs, just because it is different. If this cannot be done under the GPL license, then could someone tell me how I could go about starting my own small business to legally Setup/Install Linux distributions.

View 14 Replies View Related

Ubuntu Servers :: Associate Internal ISS With Website Hosted By Apache?

Apr 18, 2011

we have a dual server setup: Windows server 2003 and Ubuntu 10.04 with apache installed with all the goodies. This is all virtualized. What I'm wanting to do, is make the new website we've created run on the Ubuntu machine, which it is, and be accessible outside the office. However, by doing this, we forfeit being able to use remote access or web exchange on Windows server 2003.

How can I create a link from the new website on Apache point to the internal server and it work outside of the office?

View 7 Replies View Related

Debian :: Apache CGI - Internal Server Error

Sep 30, 2015

I installed debian 7 and apache 2.2 with virtualhosts. I'd like to run CGI, but always get internal server error. i tested it with a simple test.cgi file.I got this in apache error log.Wed Sep 30 21:39:02 2015] [error] [client 192.168.0.156] Premature end of script headers: test.cgi

When is switch off "Addhandler cgi-script .cgi" in the config file i see the code. Permissions are 755 on the whole directory. I have checked a2enmod, the modul is loaded (sudo a2enmod cgi)..here are the part of config files :

ScriptAlias /gestioip "/var/www/gestioip"
<Directory "/var/www/gestioip">
AddHandler cgi-script .cgi
AddDefaultCharset utf8

[code]...

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

Software :: Apache Showing Internal Server Error

Jun 23, 2010

My httpd error_log says the following error while running the htpasswd.pl
[Thu Jun 24 08:25:54 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jun 24 08:25:54 2010] [notice] Digest: generating secret for digest authentication ...
[Thu Jun 24 08:25:54 2010] [notice] Digest: done
[Thu Jun 24 08:25:54 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Thu Jun 24 08:26:01 2010] [error] [client 117.204.119.181] (2)No such file or directory: exec of '/var/www/cgi-bin/htpasswd.pl' failed
[Thu Jun 24 08:26:01 2010] [error] [client 117.204.119.181] Premature end of script headers: htpasswd.pl

Also the apache shows this error in the webpage. Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
Apache/2.2.3 (CentOS) Server at 59.93.43.183 Port 8284

I am using the htpasswd.pl script dwoloaded from net. I can run the perl file using the command line and gets the sytax OK message. The contents of te htpasswd file is as follows:
#! /usr/local/bin/perl -T
# htpasswd.cgi by David Efflandt (efflandt@xnet.com) 8/97
# Last update 10/4/99
# Update password file from the web for use with user authentication.
# Stores each line in the format: username:crypted_password .....

View 8 Replies View Related

Red Hat :: RHEL5 Apache Directory Listing For A Directory?

Feb 1, 2010

I have RHEL5 with apache installed and running. I have a directory off of / called software that I would like to have show up as a directory listing so if I go to [URL] I get the directory listing. I have tried searching around and nothing seems to work for me. So out of the box how do I get this to work? My server properly resolves to [URL] so I am good there.

View 8 Replies View Related

Programming :: Apache Mod_write/proxy - Bunch Of Web Servers Running On My Internal Network

Jan 26, 2011

Suppose I have a bunch of web servers running on my internal network:

And I have a dyndns account, I was wondering:

How can I do this?

View 2 Replies View Related

General :: Use Mkdir Command To Create 'local' Directory In /usr - There Are Error - Cannot Make Directory

Jun 16, 2010

I am a student studying computer science course.

Well, I am facing problem when doing lab questions.

I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).

I am required to use the /usr/local directory.

In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".

Look at my screenshot at [url].

View 9 Replies View Related

Software :: Error - Mkdir: Cannot Create Directory `/dev/cgroup/cpu/user/5900': No Such File Or Directory

Jun 21, 2011

I get the following error whenever I launch bash:

Code:
mkdir: cannot create directory `/dev/cgroup/cpu/user/5900': No such file or directory
bash: /dev/cgroup/cpu/user/5900/tasks: No such file or directory
bash: /dev/cgroup/cpu/user/5900/notify_on_release: No such file or directory
It seems like it's probably from this part of .bashrc:

[Code]...

What does this code do, why, and what's causing it to go wrong?

View 7 Replies View Related

Ubuntu Security :: Block All Websites Except Desired Websites?

Apr 12, 2010

I want to block all websites except desired websites.

View 3 Replies View Related

General :: Create A Directory Named Like His Parent Directory

May 26, 2011

I need to create a directory named just like his parent.

Example:

I tried this but because there is "Space Characters" in the name of Parent directory, my script fails.

View 8 Replies View Related







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