Sponsored Content
Top Forums Web Development Problems with Apache Virtual Host Post 302884459 by Corona688 on Monday 20th of January 2014 12:10:15 PM
Old 01-20-2014
Let me explain my exact situation.

I have wordpress installed in /usr/share/wordpress, shared. I also have a few user-modifiable directories in /srv/www/wp-content/lmgmg.sitename.com/uploads and so forth.

I am hoping to be able to define mysite.com with a documentroot of /usr/share/wordpress, and alias /wp-content/uploads into the various /srv/www/wp-content/site/uploads directories individually. So far, I can't alias /wp-contents/uploads individually, only globally.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Apache virtual host

Would this be the correct entry for Apache to answer on the IP 129.250.242.126 if the servers IP is 129.250.242.125? Are any other changes necessary to get Apache to answer this IP for web traffic? < VirtualHost 129.250.242.126> ServerName www.my_domain.com ServerAdmin admin@my_domain.com... (4 Replies)
Discussion started by: 98_1LE
4 Replies

2. UNIX for Advanced & Expert Users

Resolving Aliases and Virtual IP's on a Host

I am currently going through the servers in our network and trying to compile a list of the current aliases for each box and any virtual IP addresses. I can check for the ones that are supposed to be there but how do I list the ones that I don't even know exist? ANY help would be greatly... (1 Reply)
Discussion started by: Scott Pullen
1 Replies

3. Solaris

Unix virtual host detection

I have a need to write scripts that can reliably determine the virtual host of a Sun Solaris system. (1 Reply)
Discussion started by: Meridian
1 Replies

4. Solaris

Unix virtual host detection

Is it possible to reliably detect the virtual host of a Sun Solaris box, within a shell or Perl script? Can a system have multiple virtual host or not host at all ? I was recently made aware of hostname command, but was not sure if this option was the only one available. Any help is much... (3 Replies)
Discussion started by: Meridian
3 Replies

5. Red Hat

Virtual Host Apache

Hi, I have set up the following virtual host but it cannot find the URL? Apache is running fine and I have disabled iptables. Within the document root I have the following file index.html displaying a sample text message. Any ideas what my problem might be? httpd.conf: ... (2 Replies)
Discussion started by: Duffs22
2 Replies

6. Solaris

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12). I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies

7. Red Hat

Apache question - virtual host related

Hi folks, I recently read about Apache virtual host and was able to configure that as well. I used name based virtual host (lets say http://vhost1.example.com) and it worked just fine. Then I configured another named based virtual host on same apache server (lets say http://vhost2.example.com)... (2 Replies)
Discussion started by: freebird8z
2 Replies

8. Red Hat

Apache virtual host config vs global config problem

Hi folks, I am trying to configure Apache webserver and also a virtual host inside this webserver. For Global server config: /var/www/html/index.html For virtual host config: /var/www/virtual/index.html Both client10 & www10 are pointing to 192.168.122.10 IP address. BUT, MY... (1 Reply)
Discussion started by: freebird8z
1 Replies

9. Solaris

Solaris 10 virtual - how do I tell physical host?

uname -a reports type Generic so I know its virtual. Assume its an ldom somewhere. How do I find out what physical host server is? (4 Replies)
Discussion started by: psychocandy
4 Replies

10. UNIX for Advanced & Expert Users

Apache Virtual host issue

Hello, I am facing a very strange issue while setting a virtual host on apache to setup multiple websites using separate IPs. Virtual host is setup but when i am browsing the website it display content under /var/www/html and displaying site1 and site2 folder instead of access the content... (2 Replies)
Discussion started by: sunnysthakur
2 Replies
gpg_web_selinux(8)					      SELinux Policy gpg_web						gpg_web_selinux(8)

NAME
gpg_web_selinux - Security Enhanced Linux Policy for the gpg_web processes DESCRIPTION
Security-Enhanced Linux secures the gpg_web processes via flexible mandatory access control. The gpg_web processes execute with the gpg_web_t SELinux type. You can check if you have these processes running by executing the ps com- mand with the -Z qualifier. For example: ps -eZ | grep gpg_web_t ENTRYPOINTS
The gpg_web_t SELinux type can be entered via the gpg_exec_t file type. The default entrypoint paths for the gpg_web_t domain are the following: /usr/bin/gpg(2)?, /usr/lib/gnupg/.*, /usr/bin/gpgsm PROCESS TYPES
SELinux defines process types (domains) for each process running on the system You can see the context of a process using the -Z option to ps Policy governs the access confined processes have to files. SELinux gpg_web policy is very flexible allowing users to setup their gpg_web processes in as secure a method as possible. The following process types are defined for gpg_web: gpg_web_t Note: semanage permissive -a gpg_web_t can be used to make the process type gpg_web_t permissive. SELinux does not deny access to permis- sive process types, but the AVC (SELinux denials) messages are still generated. BOOLEANS
SELinux policy is customizable based on least access required. gpg_web policy is extremely flexible and has several booleans that allow you to manipulate the policy and run gpg_web with the tightest access possible. If you want to deny any process from ptracing or debugging any other processes, you must turn on the deny_ptrace boolean. Enabled by default. setsebool -P deny_ptrace 1 If you want to allow all domains to use other domains file descriptors, you must turn on the domain_fd_use boolean. Enabled by default. setsebool -P domain_fd_use 1 If you want to allow all domains to have the kernel load modules, you must turn on the domain_kernel_load_modules boolean. Disabled by default. setsebool -P domain_kernel_load_modules 1 If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. setsebool -P fips_mode 1 If you want to enable reading of urandom for all domains, you must turn on the global_ssp boolean. Disabled by default. setsebool -P global_ssp 1 If you want to allow httpd cgi support, you must turn on the httpd_enable_cgi boolean. Disabled by default. setsebool -P httpd_enable_cgi 1 If you want to allow httpd to run gpg, you must turn on the httpd_use_gpg boolean. Disabled by default. setsebool -P httpd_use_gpg 1 MANAGED FILES
The SELinux process type gpg_web_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions. httpd_sys_rw_content_t /etc/glpi(/.*)? /etc/horde(/.*)? /etc/drupal.* /etc/z-push(/.*)? /var/lib/svn(/.*)? /var/www/svn(/.*)? /etc/owncloud(/.*)? /var/www/html(/.*)?/uploads(/.*)? /var/www/html(/.*)?/wp-content(/.*)? /var/www/html(/.*)?/sites/default/files(/.*)? /var/www/html(/.*)?/sites/default/settings.php /etc/mock/koji(/.*)? /var/lib/drupal.* /etc/zabbix/web(/.*)? /var/log/z-push(/.*)? /var/spool/gosa(/.*)? /var/lib/moodle(/.*)? /etc/WebCalendar(/.*)? /usr/share/joomla(/.*)? /var/lib/dokuwiki(/.*)? /var/lib/owncloud(/.*)? /var/spool/viewvc(/.*)? /var/lib/pootle/po(/.*)? /var/www/moodledata(/.*)? /srv/gallery2/smarty(/.*)? /var/www/moodle/data(/.*)? /var/www/gallery/albums(/.*)? /var/www/html/owncloud/data(/.*)? /usr/share/wordpress-mu/wp-content(/.*)? /usr/share/wordpress/wp-content/uploads(/.*)? /usr/share/wordpress/wp-content/upgrade(/.*)? /var/www/html/configuration.php public_content_rw_t /var/spool/abrt-upload(/.*)? SHARING FILES
If you want to share files with multiple domains (Apache, FTP, rsync, Samba), you can set a file context of public_content_t and pub- lic_content_rw_t. These context allow any of the above domains to read the content. If you want a particular domain to write to the pub- lic_content_rw_t domain, you must set the appropriate boolean. Allow gpg_web servers to read the /var/gpg_web directory by adding the public_content_t file type to the directory and by restoring the file type. semanage fcontext -a -t public_content_t "/var/gpg_web(/.*)?" restorecon -F -R -v /var/gpg_web Allow gpg_web servers to read and write /var/gpg_web/incoming by adding the public_content_rw_t type to the directory and by restoring the file type. You also need to turn on the gpg_web_anon_write boolean. semanage fcontext -a -t public_content_rw_t "/var/gpg_web/incoming(/.*)?" restorecon -F -R -v /var/gpg_web/incoming setsebool -P gpg_web_anon_write 1 If you want to allow gpg web domain to modify public files used for public file transfer services., you must turn on the gpg_web_anon_write boolean. setsebool -P gpg_web_anon_write 1 COMMANDS
semanage fcontext can also be used to manipulate default file context mappings. semanage permissive can also be used to manipulate whether or not a process type is permissive. semanage module can also be used to enable/disable/install/remove policy modules. semanage boolean can also be used to manipulate the booleans system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was auto-generated using sepolicy manpage . SEE ALSO
selinux(8), gpg_web(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) , setsebool(8) gpg_web 14-06-10 gpg_web_selinux(8)
All times are GMT -4. The time now is 01:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy